Saltar navegación

[Resuelto] Content template not being used in Tags archive

This support ticket is created hace 4 años. 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
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Zona horaria del colaborador: Asia/Kolkata (GMT+05:30)

Este tema contiene 8 respuestas, tiene 2 mensajes.

Última actualización por StanleyT8485 hace 4 años.

Asistido por: Minesh.

Autor
Mensajes
#2147195

Tell us what you are trying to do?
I want to create an archive page for our Tags and customize it with a Content Template. These tags are under a Custom Post Type.

However, the archive page isn't using the Content Template.

Here's what I've done:
1. Create a Content Template and check Tags. Screenshot: enlace oculto
2. Create a WordPress Archive for the Tags. This is working.

Screenshot of Content Template and a Tag archive page: enlace oculto

#2147275

Minesh
Colaborador

Idiomas: Inglés (English )

Zona horaria: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

As I understand - you want to display the archive title on the tags archive you created using Toolset - right?

#2147319

Yes, correct.

More importantly, I want it to use the Content Template I have assigned it.

#2147333

Minesh
Colaborador

Idiomas: Inglés (English )

Zona horaria: Asia/Kolkata (GMT+05:30)

If you want to display the archive title then you need to edit your archive and add the archive title there.

#2147369

Do you mean the theme archive?

How about using Content Template to update the archive page? Can we do that?

#2147557

Minesh
Colaborador

Idiomas: Inglés (English )

Zona horaria: Asia/Kolkata (GMT+05:30)

How you are building the archive? Using Blocks or classic mode?

Toolset has separate menu to create archive Toolset => WordPress Archives from there you can create a new archive.

You can create a content template and add it within the archive loop but you can not directly assign content template to archive.

#2149177

I am using Classic mode to build the archive.

"You can create a content template and add it within the archive loop but you can not directly assign content template to archive."

I see. I thought I would be able to assign an archive to a content template because Toolset was giving me that option. Screenshot: enlace oculto

I have three questions:

1. How can I show the Tag title into the archive without the "Tag" in front of the title? For example, Tag: Biology. I am using [wpv-archive-title] in the Views.

2. How can I show the Tag description? I have tried both [wpv-post-taxonomy type="sc_tag" format="description"] and [wpv-post-taxonomy type="post_tag" format="description"] and both doesn't show anything.

3. The Content Template I'm putting into the Views archive is not showing up. Screenshot: enlace oculto
Nothing showing up on the Tag page. Screenshot: enlace oculto

#2149615

Minesh
Colaborador

Idiomas: Inglés (English )

Zona horaria: Asia/Kolkata (GMT+05:30)

What plugin version you are using? It looks like that content templates are part of the archive's loop.

1. How can I show the Tag title into the archive without the "Tag" in front of the title? For example, Tag: Biology. I am using [wpv-archive-title] in the Views.
==>
You will have to use the get the title filter. Please check the following related ticket.
- https://toolset.com/forums/topic/how-to-get-a-title-in-my-category-archive/#post-1164829

Would you mind to create a new ticket for every new question you may have. This will help other users searching on the forum as well as help us to write correct problem resolution summery for the original issue reported.

#2150167

My issue is resolved now. Thank you!

I used these fields to solve my issue.
Tag title: [wpv-taxonomy-title]
Tag description: [wpv-taxonomy-description]

I found them from this link: https://toolset.com/documentation/programmer-reference/views/views-shortcodes/#wpv-taxonomy-archive