Dynamic content retrieves Archive name instead of Archive title

Hi Team,

I’m making an archive lay-out and instead of using the landmark, I would like to add a headline which shows me the category title. However, {{dc:archive:title}} does not retrieve the Archive title, but the category name (according to WP terminology. See screenshots

Is there a way to retrieve the Archive Tiltle (“Alle orang-oetans”) instead of the Name (“orangutans”)?

And a second questions: is it good practice to hide the landmark with css and use dynamic contect in to retrieve the Archive title? I read some posts in the forum which say that one should make a custom header; make it global, but use it only on the archive pages, and assign other headers to all the other pages. That seems a bit awkward…

I’m using Pro, by the way.

Thank you in advance!

Kind regards,

Hugo

Hey, @HugoW! Thanks for writing in…so that “Archive Title” input towards the bottom of the Categories admin page is a non-standard feature of WordPress. It’s actually something we included when we launched X years ago for people to overwrite archive headlines for our classic Stacks (e.g. Integrity, Renew, et cetera). As our products move further away from this paradigm with the Layout Builder now having full control over things, and furthermore in the future with our theme options reboot where there will be a more unified approach to things, those inputs will actually be deprecated as they won’t be used for anything. So all that to say, we will not be supporting a way for users to access this with Dynamic Content as it will be deprecated in the future in addition to the fact that the way that information is hooked into that admin page was done at a time when there were some workarounds we had to do to get it working, so there isn’t really even a super reliable way out of the box for us to allow access to it.

So, as for the {{dc:archive:title}} Dynamic Content string, that will always reference the Name field moving forward. Additionally, we are going to keep {{dc:archive:title}} working behind the scenes, but moving forward we will rename this to {{dc:archive:name}} and reference this as “Name” in the Dynamic Content popup to avoid any confusion here. Thanks for writing in and we will be getting that out with a forthcoming release.

Cheers!

Hi Kory,

Thank you for your reply. Yes, I can see in other Wordpress sites that Archive Title is indeed not native to WP. I have to change my category names then.

What about my second question: is it good practice to hide the landmark with css and use dynamic contect in to retrieve the category name? I read some posts in the forum which say that one should make a custom header; make it global, but use it only on the archive pages, and assign other headers to all the other pages. That seems a bit awkward…

Hello Hugo,

Hiding the landmark with CSS is not a good practice. Please create a custom header instead and then you can use the headline element with the dynamic content to display the Archive Names.

Hope this helps.

Thanks Rue!

I put the landmark back in place and found a different way to achieve what I want.

Have a nice day.

You are most welcome.
Cheers.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.