Skip Navigation

[Resolved] Display Custom Post Type as Archive Page Title

This support ticket is created 6 years, 4 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Karachi (GMT+05:00)

This topic contains 1 reply, has 2 voices.

Last updated by Waqar 6 years, 4 months ago.

Assisted by: Waqar.

Author
Posts
#1116331

Tell us what you are trying to do?
I am editing WP archive templates for several Custom Post Types. The loop works fine but I haven't been able to display that specific Custom Post Type as the title of the page.

So for example on tis page: hidden link I would like the title to be
Type of Digital Intervention: Digital Advisory.

Is there any documentation that you are following?
I used this page: https://toolset.com/documentation/recommended-themes/toolset-divi-integration/design-archives-for-custom-post-types-with-divi-builder-and-toolset/

Is there a similar example that we can see?

What is the link to your site?

#1117172

Hi Stefanie,

Thank you for contacting us and I'll be happy to assist.

To show the titles of your WordPress archive pages, you can use the shortcode “wpv-archive-title”
( ref: https://toolset.com/documentation/user-guides/views-shortcodes/#wpv-archive-title )

This shortcode doesn’t accept any attributes, but to customize these titles, you can use “get_the_archive_title” and WordPress conditional tags.

Following are some useful resources on the topic:

https://developer.wordpress.org/reference/functions/get_the_archive_title/
https://codex.wordpress.org/Conditional_Tags

I hope this helps! Please let us know if you need any further assistance.

Regards,
Waqar