Get post id of permalink for a specific custom post type?
Get post id of permalink for a specific custom post type?
Get post id of permalink for a specific custom post type?
Excerpt for each post type and for is_front_page
Query Distinct Taxonomies of Custom Post Type
taxonomy term names in custom post type permalink structure
Redirect permalinks after creating custom post types
You’re only referencing the event date in your query, which is why you’re not getting normal posts (because I assume they don’t have an event date). You can use “orderby” with multiple values (separated by a space), so you should be able to change it to: ‘orderby’ => ‘meta_value date’ That should mean that the … Read more
the answer my question is: query(‘post_type=portfolio&posts_per_page=-1&slug=past-projects&portfolio_categories=past-projects’);
When you register your taxonomy, set the update_count_callback argument to _update_generic_term_count. This will count all objects associated to taxonomy terms so you don’t need to use hide_empty. $args = array( // your other taxonomy arguments here ‘update_count_callback’ => ‘_update_generic_term_count’ ); register_taxonomy( ‘your-taxonomy’, array( ‘attachment’ ), $args );
** Edited after large discussion below ** Ok so here is a link to a gist which should work. If it does not, I’m honestly out of ideas, but this demonstrates how to set up a new query, including an example that should be pretty spot on to what you need, perhaps you may just … Read more
Anything can be done with URLs in WordPress… unfortunately not too easily a lot of the time. 🙂 It will probably be overkill to construct completely custom rewrite rules for that. Since you only have one extra variable/variation to the template it seems like handling it via endpoint (see add_rewrite_endpoint()) might be sufficient.