[Support request] Page Headers Posts Page (blog) Title

Home Forums Support [Support request] Page Headers Posts Page (blog) Title

Home Forums Support Page Headers Posts Page (blog) Title

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #458041
    Arthur

    I’m using a custom Page Header for the Posts page (blog) Global Location, but the {{post_title}} template tag doesn’t seem to show the Page Title for that page. This is the page that is set as the Posts Page under Customize > Homepage Settings > Posts Page.

    Any ideas on how to dynamically set that page title?

    #458159
    Leo
    Staff
    Customer Support

    Hi there,

    That’s because title are only added on static pages.

    The easier solution would be to create the same page header but with the title Blog as the page header content.

    Let me know if you need more info 🙂

    #573716
    Ryan

    I’m having the same problem and I do not understand your answer Leo. I’ve looked at other solutions on the GP forums to use code in GP hooks but nothing appears to work. Can set the global page header for blog page but the title doesn’t come through.

    I totally understand how this can happen as if we just called the_title(); we would get the title of the first post displaying on the page. Is there a function to retrieve the page title of the blog page or at least a way to hard set it?

    Update: Nevermind! just found it

    #574035
    Leo
    Staff
    Customer Support

    Glad you figured out!

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