Site logo

Archived topic

Remove posts from Archive in CPT

3 replies · Started by Rostyslav on February 15, 2023

Viewing posts 1–4 of 4

Hello!

I have created a CPT, I added a Element<Block (Hook> inside a site container) with my own design (diplay: inside the CPTs Archive page). The question is: How can I remove the posts (that display automatically) from this Archive page (only remove post from CTP archive page)?

I want to use my own disign for the CPT Archive page. I dont wont to crate separate static page because I want to diplay my desing inside the CPTs Archive slug.

http://www.mywebsite.com/proyectos/proyecto-17

The /proyectos/ is CPT ARCHIVE page slug and I would like to personalize from blank. The only way I found is adding a block element inside that page and removing the posts that wordpress displays below. But, I dont know how to remove them from displaying.

Hi there,

if you use a Block Element - Loop Template, and inside that add a Query Loop block, you can set the Query Loop "inherit query from template" option. Then set the element to display on your archives.

Thanks so much!

You're welcome

This archived topic is closed to new replies.