Custom archive page for CPT

Posted in: Newspaper
Post count: 8

I’ve got a custom post type for a glossary. On the glossary archive page I’d like to display it with no thumbnail or meta data, display the content rather than the excerpt, and remove the link from the title. Basically on the archive page it just needs to have the title and content displaying in alphabetical order, with 25 posts per page and paging.

What would be the best way to do this? I’m assuming it would be best to do a custom archive page calling to a custom loop? Or can I hook in with a function in my child theme just for that custom post type? I know I can hook in with pre_get_posts to change the amount of posts displayed, but as far as not displaying the other stuff, I’d rather not just hide it through CSS.

Post count: 35449

Hi,

The easiest way is with css, but if you want and have developer skills, you can try to make a custom archive page that call a custom loop, or even to “hook” a file theme in child, you can try the both way, and see the results.

Thank you for your understanding.

Post count: 8

Hi thanks, I ended up doing a combination of things to make it work. I hooked in to change the amount of posts displayed and display in alphabetical order, then modified the archive in my child theme so that if it’s that post type display the content, then I also had to tweak the CSS. Whew! But it’s all working good now.

I do have a request though for a future update – if any post (or post type) doesn’t have comments enabled, then the comments in the meta info should be off by default in all of the archives and search and modules etc. Would that be possible to incorporate?

Post count: 35449

Hi,

I’ll note your suggestion on our the future list, and if will be more request for it, or our developers consider a good feature then your suggestion will be implementation.

Thank you for your suggestion.

Post count: 23

Hi,
I have a problem with Glossary term page format (I use glossary plugin premium) – its page or post format is different (smaller, looks like a mobile page/post format) than the normal default/global page/post format.

How can I change it to default/global page/post format.
the link is: http://www.mydomain.com/glossary/audi (audi is glossary term), and when you go to audi page it has critical error on it and the page format is smaller than the normal post page format.

Please help.

Post count: 21065

Hello!

I just replied you here: https://forum.tagdiv.com/topic/glossary-plugin-conflict-there-has-been-a-critical-error-on-this-website/

Please do not create same multiple queries!

Thank you!

Viewing 6 posts - 1 through 6 (of 6 total)
The forum ‘Newspaper’ is closed to new topics and replies.