Home Forums General Issues Saving dynamically-generated data Reply To: Saving dynamically-generated data

  • Yep — I mean the normal WP tags taxonomy. Here’s how it looks within the admin:

    You can see the normal tag list on the top, then my component with checkboxes below. You’ll see that I unchecked “Plants 101” and “Relaxation Line”, so that (once it’s working) those wouldn’t be displayed on the front end.

    I’m just not sure how to save that because those tags are being generated automatically using the following code:

    $post_id = $_GET['post'];
    $tags = wp_get_post_tags($post_id);
    foreach($tags as $tag) {
        echo '<input type="checkbox" name="ppjtags_'. $tag->term_id .'" checked>'. $tag->name .'<br>';

    Does that help clarify things?