Only show posts with date of today or in the future (i.e don’t show past posts)?
Can’t believe I didn’t see this sooner, simply solved it with this in the query: ‘post_status’ => ‘future’ So once published it just disappears from the list.
Can’t believe I didn’t see this sooner, simply solved it with this in the query: ‘post_status’ => ‘future’ So once published it just disappears from the list.
Correct me if I’m wrong, but isn’t what you’re looking for the wp_set_object_terms function?
I followed this handy guide and it worked a treat: http://shibashake.com/wordpress-theme/wordpress-custom-taxonomy-input-panels
You have old version function (get_terms($tax, $args);). Try this: get_terms(array(‘hide_empty’=>0,’taxonomy’=>array(‘tagportfolio’)));
this code will display the post from all taxonomy in wordpress: $args = array( ‘type’ => ‘post’, ‘child_of’ => 0, ‘parent’ => ”, ‘orderby’ => ‘name’, ‘order’ => ‘ASC’, ‘hide_empty’ => 1, ‘hierarchical’ => 1, ‘exclude’ => ”, ‘include’ => ”, ‘number’ => ”, ‘taxonomy’ => ‘season’, ‘pad_counts’ => false ); $taxonomy = get_categories( $args … Read more
This doesn’t solve your question to show a custom post type inside a custom post type, but why don’t you use an author template? You can set up users for your writers and select that user for each post. You can even use Advance Custom Fields to add custom fields to a users profile. https://codex.wordpress.org/Author_Templates
Found the solution. The rewrites were getting added to the db after the system was reading them from the db. Moved the code and it worked!
For these situations build your own metabox for the tax terms and use radio or select. My fork of Jared Atchison’s Custom Meta Box class supports custom taxonomy metaboxes. After you get the metabox directory uploaded use this to create your meta box. $prefix = ‘xxx_’; //Add your own unique prefix. $meta_boxes = array(); $meta_boxes[] … Read more
What exactly do you mean by separated? If you want multiple tags clouds you will probably need to: fetch full list of terms; split it into groups by your criteria; call wp_tag_cloud() for each group, using include argument to use specific subset of terms.
I would recommend the Search Everything plugin too, but if you want to implement this using WP’s search function, here’s the code I’m using in my Atom theme: // search all taxonomies, based on: http://projects.jesseheap.com/all-projects/wordpress-plugin-tag-search-in-wordpress-23 function atom_search_where($where){ global $wpdb; if (is_search()) $where .= “OR (t.name LIKE ‘%”.get_search_query().”%’ AND {$wpdb->posts}.post_status=”publish”)”; return $where; } function atom_search_join($join){ global … Read more