I am trying to exclude posts from a custom taxonomy from displaying on a specific custom post type archive. How can I accomplish that? Today, I do this on a per post basis which is not practical. Thanks so much!
Have posts, want related categories to display under them.
Trying to cobble together a function from various suggestions that sets the number of posts per page based on the custom post type category in question. For instance, an “Alphabetical” category contains 3500+ posts, so I want pagination, but a child category “A” contains 100 posts and I want to show them all without pagination. The term_id for “A” is 1858, for “Alphabetical” is 1853. Can I check for specific term ids in a conditional? Not like this of course, which was just guessing…
I have created a custom post type called “al_product” and attached to it a custom taxonomy called “product_category”.
I’ve created an archive page for my custom posts, it loops through every one except the first. There is 11 posts overall and I only get 10 on the archive page.
I’d like to use a custom post type archive as a site’s front page, so that
I have registered a Custom Post Type and created a file called archive-myCPT.php and another one for single posts called single-myCPT.php.
How do you display the archives of a Custom Post Type by Year & Month?
My goal is to have the slug www.domain.com/resources used by a Page Template rather than an Archive Page, and have single CPT posts as children of that slug, such as www.domain.com/resources/post
.
I’ve got these custom post types (CPT) and meta boxes: