[Support request] Using page header on custom post types

Home Forums Support [Support request] Using page header on custom post types

Home Forums Support Using page header on custom post types

Viewing 15 posts - 1 through 15 (of 23 total)
  • Author
    Posts
  • #262014
    Gabriel

    Hi!

    I’m trying to use the Page Header add-on on a custom post type. I can set everything with the meta in the admin, but the page header elements aren’t displaying on the page once published. Do I need to add instruction somewhere so my custom post type can use the page header add-on?

    thanks!

    #262046
    Tom
    Lead Developer
    Lead Developer

    If the page you’re viewing is the index of your custom post type, WordPress ignores the meta box values (same as the blog index for example).

    However, you can use the Blog Page Header and apply it to your custom post type: https://docs.generatepress.com/article/blog-page-header/

    #262142
    Gabriel

    I did try that, but it doesn’t work. I’m using pods.io framework to manage my custom post type. The page I’m working on is here: https://splitboardqc.ca/splitboard/prior-shotgun-split-159-xtc/. Any other idea on why the page header isn’t displaying?
    thanks!

    #262204
    Tom
    Lead Developer
    Lead Developer

    Getting a 404 at that URL.

    Can I see the code you’re using to apply the blog page header to that page?

    #262244
    Gabriel

    I’m having issues with Siteground so my site is throwing 404 on all pages :(. As for the code, I’m not using any php, I’m using the meta boxes from the admin pages or the customizer.

    #262302
    Gabriel

    My site is back online now, you should be able to display the page.

    #262440
    Tom
    Lead Developer
    Lead Developer

    Hmm, doesn’t look like an index page, so the meta box should work.

    Can you show me a screenshot of your Page Header meta box on that page?

    #262553
    Gabriel
    #262637
    Tom
    Lead Developer
    Lead Developer

    Hmm, is there any way you can send me temporary admin login details? https://generatepress.com/contact/

    #262665
    Gabriel

    I’ve added support@generatepress.com as an admin.

    #262804
    Tom
    Lead Developer
    Lead Developer

    Hmm, not really sure what’s going on there.

    What if you create it as a regular page? It works? It might have something to do with it being a custom post type.. Is it using a custom template?

    #262935
    Gabriel

    It’s working A1 on everything except the post types created by pods. To my understanding, it’s not using custom templates. My plan B is to create pages and fetch the pods data. I’ll move on on that path.

    #263011
    Tom
    Lead Developer
    Lead Developer

    The only reason I can think of is that the hooks are present on the templates used by pods. The page header is simply hooked into the generate_after_header hook, so if it’s present it should display.

    #333364
    Andy

    Hi Tom,

    So have I understood… we can’t add a Page header section to a custom post type post? (even though the Page Header section box is present on all edit screens?) So is there no other ‘get-round’ (other than using the Blog Header image feature – I would want to add a different header to multiple posts?

    Thanks,

    Andy

    #333516
    Tom
    Lead Developer
    Lead Developer

    I’m working on something very, very cool related to this right now. Hoping it’s going to be the main big feature in GP Premium 1.4 🙂

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