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?
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.