Site logo

[Resolved] cpt Archive page not showing description. not sure where content is loaded from

Home Forums Support [Resolved] cpt Archive page not showing description. not sure where content is loaded from

Home Forums Support cpt Archive page not showing description. not sure where content is loaded from

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #1792189
    rikdol

    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:

    #1792245
    rikdol

    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.

    #1792913
    Ying
    Staff
    Customer Support

    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.

    #1792927
    rikdol

    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.

    #1794016
    Ying
    Staff
    Customer Support

    Obviously, I misunderstood your question, sorry for that! Glad you figured it out 🙂

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.