Skip to main content

Including Page Title Tag

Comments

11 comments

  • Alex

    Hi,

    did you try to use the #Post Title tag: https://jmp.sh/utB6i4G ?

    0
  • Erin Detka

    Whoop! Whoop! That worked!
    For the Blog page Template, #Post Title was pulling the title from the first blog post on the list. I did a workaround by creating a private post with no content and a title called "Blog." 

    I believe every time I add a blog post, I will need to make sure this Blog placeholder is the most current published so it remains the page title.

    It will work, it just adds an extra step each time I post a new blog post. 

    0
  • Alex

    Do you use Templates? In Brizy template #Post Title will display the most recent title but this only appears in the template as demo content. You will not encounter this in the frontend.

    0
  • Erin Detka

    I do!

    In the Brizy template for the Blog listing page the global block has the #Post Title:

     

     

    When I look at it on the front end, it pulls the title from the most recent published blog post, not the title of the page.

    0
  • Alex

    That's strange. Try to use the Post title element instead of the tag for templates: https://jmp.sh/whlfuZV

    Also, please make sure you have this issue with the latest Brizy versions - Free 2.2.7. and PRO 2.2.4

    0
  • Erin Detka

    Hmmm, still showing the lasted Blog Post title instead of the Page Title.

    https://dtkstudios.flywheelsites.com/category/blog/

    I am up to date on both the Free and Pro versions. 

    0
  • Alex

    wait ... I just noticed that the template you are creating is pointing to a category page, not to the blog listing page (you have set in WordPress settings). So, your template is created for an archive page. Try using the: #Archive Title tag: https://jmp.sh/Q5jntYb

    0
  • Erin Detka

    Thanks Alex,

    So I followed the tutorial in this video: https://youtu.be/cWJEetL4f-s. It says to point the template to a category page. I created a category called "Blog" so all archived posts show on one page. 

    When I set the text with the #Archive Title Tag in the Global Block, it does show "blog" on the page, but none of the other pages show their titles. 

    https://dtkstudios.flywheelsites.com/category/blog/

     

    0
  • Alex

    I'm not sure I understand. What other pages are you referring to? The template is only created for the category page, right? Respectively, the page title will be displayed only in the category pages.

    0
  • Erin Detka

    Hi Alex!

    The end goal is to have a global block to use in all internal pages that dynamically shows the title of the page. The Post Title Tag works in that it shows "About" on the About page and "Contact" on the Contact page. However, on the Blog page, it shows the most recently published Blog Post title. 

    I've configured the Blog in the Nav Menu to be directed to the Category "blog" because that is how I understand the YouTube tutorial. Perhaps I am misunderstanding the tutorial on how to link the Main Blog Listing page to the Navigation Menu...

    0
  • Alex

    Hi,

    sorry for not getting back to you sooner.

    What you want to do cannot be achieved through a single global block. This is because there are two types of pages: Single Pages (about, contact) and Archive pages (blog page, category page, author page). The tag that will display the title for Single Pages is #Post Title and the one that will work for Archive pages is #Archive Title.  So you need two identical global blocks but which have different tags depending on the type of page it is used on.

    0

Please sign in to leave a comment.