This topic is: not resolved
- This topic has 0 replies, 1 voice, and was last updated 6 years ago by .
Viewing 1 post (of 1 total)
Viewing 1 post (of 1 total)
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.
These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.
Community Forums › Forums › Archived Forums › Design Tips and Tricks › Show only parent posts in custom post type
Hi,
I have created a custom post type for my new website and I want the archive page to show only the parent CPT, not the childs.
In previous work I have developed a full loop with custom CSS, but now I want to reuse child's theme CSS.
How can I remove childs from loop? Is there any option for me to insert a 'parent => 0' rule inside CPT query?
Regards,
David
https://scrivener.es© 2024 WPEngine, Inc.