Dynamic Tag Archive Title in Pro Header Headline Element

I have created a header to use in my blog in which the title is Dynamic for the tag archive title. However it always pulls the base blog category name “Blog”. I am using {{dc:archive:title}} as the headline element text value.

I want it to show “End of Service Life” in the title headline element. Is there a variable to pull the tag title rather than the category title?

Hi @stuartborders,

Thanks reaching out.

I’m able to reproduce it, and on my end, it displays the default category set in Admin > Settings > Writing > Default Post Category. Or is it the same on your end? I’m not sure if it’s intentional but I’ll add this to our issue tracker, it seems it’s only integrated for Category as an archive.

Thanks!

im not sure if I understand your response as it relates to my question. Categories work as they should on my site. I am wanting to when I click https://www.riverstone.tech/tag/end-of-service-life/ that is says “End of Service Life” (the tag name) in the title rather than “Blog”. Is there a variable code for the tag title rather than {{dc:archive:title}} because right now its not pulling my Tag title into that field, but pulls Blog, which is the category of all of these posts.

Hello Stuart,

At the moment, only the category archive is available in the dynamic content selection. You can replace it with the landmark header shortcode instead. Please check out this thread to know how you can have the landmark header shortcode for your header.

Hope this helps.

Hi @stuartborders

Hope you’re doing well this morning. I just wanted to reach out and let you know that we’ve corrected this issue and the fix will be available in our next release.

Has this been fixed yet because i am experiencing the exact same problem - i want to pull the dynamic tag title but it will only allow me to pull the archive title which ends up being the category. thanks!

Hey @jamievilasini,

The fix will be available in the next release. Please stay tuned.

Thanks.

Hi Christian, thanks - thats helpful information :slight_smile: i’m supposed to launch the site in 15 days, so because of that I want to know if this release will be coming before then. I’m not sure if you are allowed to disclose this …

Hi @jamievilasini,

Unfortunately, there is no definite date when it will be released. There are other issues and features that are needed to be ironed out too :slight_smile:

Thanks!

Thanks @Rad - one more question - along with the Tag title dynamic content - will this also include the title for the year and month archives?

Hey @jamievilasini,

Regretfully, no. It’s only currently for Terms. I’ll add this as feature request so it might be taken into account in the next or future releases.

Thanks.

1 Like

thanks for the update. I have enjoyed it and its worked well for most circumstances. Am I missing something, I have a custom post type (hardware) - on archive page(website.com/hardware) for the post type, is there a variable for that name? I can’t assign a header to the page, so I need to dynamically insert text.

Hi @stuartborders,

Yes, category and archive pages will be using the global header. You will have to create a header and assign it as the global header so that your category and archives pages will have a custom header. Dynamic content supports custom post type. It would be best if you can open a new thread and give us more details on what you are trying to achieve. What exactly is not clear and what is not working. What have you tried so far. This way we can help you better. If in case needed, please share site URL and credentials inside a secure note. Thank you.

I have a global header selected. I am asking what is the variable use in the headline element that will display the Post type title.

{{dc:archive:title}} is what is used on my taxonomy header, but it doesn’t show post type title on the root post type page. I know I have the correct header.

Hi @stuartborders,

If that page you share is what you meant by root post type page, yes it should work. Since that is an archive page of a custom post type {{dc:archive:title}} should work like on others. I have tested it on my install and it is working. Wouls you mind sharing credentials inside a secure note so we can your setup? Thank you.

I added the info the previous secure note. thank you!

Hi @stuartborders,

As the Hardware Solution is a taxonomy that does not have any place to add an archive title in the admin as it is not like the normal post category which the theme gives an option to add Archive Title.

As you already have the header assigned to the Hardware Solution main archive page, you simply can add a static text. Whatever you want, you do not need to add a dynamic one as it is only showing for one page and that is the archive of the Hardware Solutions.

In this case, if you want to add dynamic content you need to install a plugin such as the Advanced Custom Fields Pro and add an extra custom field into the Hardware Solutions taxonomy and then you can use the Dynamic content and the ACF field to show the value.

Thank you.

I am not talking about the Taxonomy. that header does work correctly. I am talking about the Custom Post Type “Hardware Solutions”. Please advise

Hey @stuartborders,

I believe what Christopher was saying is, though the “hardware solutions” page is an archive page, it is not a category or a tag. It is the main index page (like the blog page and shop page of WooCommerce) of your custom post type and the Dynamic Content has no variable for that. The Dynamic Content currently only displays category and tag titles.

The solution of Christopher is also correct. I’ll clarify it though.

  1. Duplicate your archive header
  2. Use a static headline instead of Dynamic Content
  3. Assign the header to your Hardware Solutions index page by using this condition is_post_type_archive('hardware-solutions').

I’ve already placed the condition in your child theme’s functions.php during my test. Just do the header duplication part and replace the header assigned to it.

Your Hardware Solutions “category” still uses the is_archive assigment (see secure note).

Hope that helps.