Custom post type history

I would probably go with a custom post type ( draught – the golden honey from the gods ) as you already have. I would then create two taxonomies, keg ( which can be a hierarchical taxonomy ) and line ( which can be a non-hierarchical taxonomy )with their respective terms. Example : keg coors … Read more

next_post_link and previous_post_link in custom post type single page, in same non-custom category

First please check your “custom_post_type” function that you Register Custom Post Type is everything correct like ‘taxonomies’=> array( ‘category’) & ‘has_archive’ => true, ! If so then you must be put wrong way to display it. About next_post_link and previous_post_link Please try with like this inside your single-realisation.php file $prev_post = get_previous_post(); $next_post = get_next_post(); … Read more

Custom Query to display posts with custom field

As @jdm2112 implied, WP_Query for your 2nd display is preferred over query_posts. Try using WP Query for your first display as well. It would look something like: <?php $args = array( ‘post_type’ => ‘cars’, // or whatevr the custom post type is ‘post_status’ => ‘publish’, ‘meta_query’ => array( array( ‘key’ => ‘wpcf-featured’, ‘value’ => true, … Read more

Multisite Global Custom Posts

In case anyone comes across this question in the future, I found a plugin that does everything I want. The plugin is Multisite Post Duplicator which is a free plugin available in the WordPress plugin directory. Below are some of the plugin features. Features: Copies all custom fields Copies all related post meta Includes any … Read more

how to get archive urls with same origin for custom types and terms?

So, a first solution can be using add_rewrite_rules(). A first raw logic should be something like: 1- get term slugs you need, save in a var, say $terms_string; $terms_string should be a list of pipe-separeted slugs, suitable for regexp, like ‘type1|type2’ etc.. containing ONLY valid (allowed) values. Say use get_terms() to get all the slugs.. … Read more