Archived topic
cpt Archive page not showing description. not sure where content is loaded from
4 replies · Started by rikdol on May 21, 2021
Hi there.
Im running into a problem with a custom post type, and the archive page for it. There are a few things im running into:
`<li>Editing the title, i want to get rid of the "archieven: cptacer", use a custom name for this</li>
<li>show content beneath the title that explains what the page is about </li>`
cptacer is the name of my custom post type
i have the standard archive.php and created an archive-cptacer.php
in archive-cptacer i've added the line the_archive_description(); just after do_action( 'generate_archive_title' );
So the description is showing, but it shows in between the "title" and "posts".
I can't for the life of me find out what file to add, where or how to call it,to have my description turn up.
For this description i am now using a third party plugin, but i might be better off using an element which i haven't looked into. If that would be a "leaner" solution i'd be happy if you help me out on this.
links in private info:
Quick update.
I've been looking into the elements and figured out how to get content inside the Archive: page using Elements > hooks
Now there remains a problem, which is that it shows the 'breadcrumb' for every post on that page.
I'm sure there is a rule i can set to not have it show up there, but i don't know which one to pick for this.
Hi Rik,
GP doesn't add Breadcrumbs to the site, I just inspected your site, the breadcrumbs are added by rank math.
https://www.screencast.com/t/CLa6MBIp39
I'm not familiar with rank math, but I assume the plug would have a setting to not display breadcrumbs.
Yes i know it's from rank math. my question was about the Hook element where i was using it.
The question was more about what position to pick, to have the php snippet work on specific page types. But also this problem was resolved in the mean time.
Obviously, I misunderstood your question, sorry for that! Glad you figured it out :)