Archived topic
How to Disable the Archive "Loop Posts" Feature?
3 replies · Started by Jordan on October 3, 2018
I installed a plugin called "Archive Control" so I could add content to my category pages (it allows you to add content before, and/or after the usual "loop" of posts.)
I would like to disable the "loop" posts feature entirely, as I will create my own "table of contents" for each category, using the aforementioned plugin.
Any tips?
I guess I could edit the archive.php file, perhaps, to remove the looping posts thingy.
I'd rather avoid editing a core file, though.
Cheers,
Jordan
Hi Jordan,
Just to confirm, you're wanting to remove all the posts from your category templates?
Hi Tom,
Yes, that's exactly right!
I apologise for my long-winded version of essentially asking that...
The easiest way would be to copy the archive.php file and add it to your child theme as 'category.php`.
Then remove this part: https://github.com/tomusborne/generatepress/blob/2.1.4/archive.php#L24-L52