WP_Query with all posts in one custom post type and only posts in another custom post type with a specific category

I’m going to take the answer you posted for yourself and suggest a couple of improvements. Some things I’ll address: The 3rd query is unnecessary. There are simpler ways to sort by date. Just make both queries for the full post content and merge the results. Since we’re not going to be using have_posts() and … Read more

Permalinks: custom post type -> custom taxonomy -> custom sub taxonomy -> post

you can try with this plugin (or see its code) https://wordpress.org/plugins/wp-better-permalinks/ It allows you change the custom friendly permalinks structure to Custom Post Type > Taxonomy > Post and Custom Post Type > Taxonomy instead of default WordPress structure. it Provides different permalinks structure pattern: Custom Post Type > Single Term (or Term tree) > … Read more

Add %post_id% to slug of custom post type and prevent the “unique slug” thing that WP does?

I don’t have much experience with coding rewrites, but could you just add $post->post_name into your return statement? return home_url(‘equipment/’ . $post->ID . ‘-‘ . $post->post_name ); There are a few other ways to change the permalinks that I have used that may also help you: The easiest way to change your permalink structure is … Read more