- This topic has 10 replies, 5 voices, and was last updated 3 years, 5 months ago by
Andrei.
-
AuthorPosts
-
October 4, 2021 at 2:17 pm #1952652
jose luis
Hello there!!
I would like to know how I can remove the list of posts associated with the category page?
thanks
October 4, 2021 at 2:31 pm #1952658Ying
StaffCustomer SupportHi Jose,
Not sure I understand your question, can you explain some more and link us to the page in question?
Let me know 🙂
October 5, 2021 at 12:04 am #1952900jose luis
Hi! Thanks for your reply.
This results https://hublocker.net/amazon-locker-madrid/ I only wnat to show mi description.
October 5, 2021 at 1:29 am #1952951Elvin
StaffCustomer SupportHi there,
This results https://hublocker.net/amazon-locker-madrid/ I only wnat to show mi description.
Not sure I understand this one as well.
Did you mean you only want to display the category description (if it exists) like this? https://share.getcloudapp.com/o0uPrpvb
Is it only for a specific category? is it for ALL?
Are you sure this is what you want to do? doing this literally makes category archive pages useless.
Let us know.
October 5, 2021 at 2:31 am #1953014jose luis
Hi Elvin!!
Thanks for your reply.
Did you mean you only want to display the category description (if it exists) like this? https://share.getcloudapp.com/o0uPrpvb
yes that’s how i want it!
Is it only for a specific category? is it for ALL?
Yes for all !
Are you sure this is what you want to do? doing this literally makes category archive pages useless.
yes, I’m going to use shortcodes with a special layout
October 5, 2021 at 7:06 am #1953234David
StaffCustomer SupportHi there,
you can try adding this PHP Snippet:
add_filter( 'generate_do_template_part', function( $do ) { if ( is_category() ) { return false; } return $do; } );October 5, 2021 at 7:09 am #1953239jose luis
Hi!
It works perfectly. Thank you very much, wonderful support
October 5, 2021 at 7:17 am #1953255David
StaffCustomer SupportAwesome – glad to be of help 🙂
November 4, 2022 at 12:34 pm #2402042Andrei
Can you please explain, where and how can i add this snippet to my website?
November 4, 2022 at 12:52 pm #2402063Ying
StaffCustomer SupportHi Andrei,
You can use one of the method introduced in this article to add PHP code: https://docs.generatepress.com/article/adding-php/
November 4, 2022 at 1:02 pm #2402070Andrei
So, I can simply paste this PHP code at the end of my functions.php, right? Cause I can’t install a plugin, it shows an error when i try to activate it.
-
AuthorPosts
- You must be logged in to reply to this topic.