Automatically assign posts with custom field to taxonomy term

The following should do what you need: add_action (‘save_post_site-members’, ‘add_term’) ; function add_term ($post_id) { if (defined (‘DOING_AUTOSAVE’) && DOING_AUTOSAVE) { return ; } $meta_key = ‘aab-ew-select-visible’ ; $tax = ‘test-all-members-cpt-tax’ ; $term_slug = ‘test-all-members-ew-tax’ ; $meta_value = isset ($_REQUEST[$meta_key]) ? $_REQUEST[$meta_key] : ” ; if (‘display’ == $meta_value) { $term = get_term_by (‘slug’, $term_slug, … Read more

meta field for numerous links

I an not entirely sure that I understood the question but I am guessing you need to publish an array of specific links on each post page. The best option will be to save the links in a meta field for that post. Note that you can store the links separated by a comma. Something … Read more