Template for slug
Try creating a Page with the users slug, then using a custom Page Template to provide the functionality you want to display all the users.
Try creating a Page with the users slug, then using a custom Page Template to provide the functionality you want to display all the users.
Custom Post Type with two hierarchical Custom Taxonomies: strategy to generate best permalink structure
You should use the pagename parameter for WP_Query along with post_parent. Limit your query to one post using posts_per_page. $parent_id = get_the_ID(); $args = array( ‘post_type’ => ‘page’ ‘pagename’ => ‘page-2’, ‘post_parent’ => $parent_id, ‘posts_per_page’ => 1 ); $posts = get_posts( $args ); $child = isset( $posts[0] ) ? $posts[0] : false; if( $child ){ … Read more
Removing “category” from URLs then “add_endpoint()” won’t work…
Allow UTF-8 characters in the user slug part of URL
Best way of removing emoji support from url / slug only
Load Page when a Page and a Category archive have the same URL: This is default WordPress behaviour: When you have the same URL for a category archive & for a page, WordPress will load the page instead of the category archive. So unless you have a plugin that is changing this behavior for your … Read more
They are all in your {wpdb->prefix}_terms table and therefore need to be unique. Else you could only get them via ID.
Not sure if I understood you right, but there’s an option when registering the custom post type: register_post_type( ‘your_cpt_name’, array( ‘rewrite’ => array( ‘with_front’ => true ) ) );
The “page” in WordPress usually refers to a “PAGE page”, as in only post of page post type. Not any page of the site in general. What you want to link to is category archive. Something along this should work: echo get_category_link( ‘cooking-sauces’ ); If cooking-sauces is slug of a term that belongs to custom … Read more