Skip Navigation

[Resuelto] Content Archive and Tags

This support ticket is created hace 5 años, 7 meses. 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.

Hoy no hay técnicos de soporte disponibles en el foro Juego de herramientas. Siéntase libre de enviar sus tiques y les daremos trámite tan pronto como estemos disponibles en línea. Gracias por su comprensión.

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)

Etiquetado: ,

Este tema contiene 7 respuestas, tiene 3 mensajes.

Última actualización por larryL hace 5 años, 6 meses.

Asistido por: Waqar.

Autor
Mensajes
#1229811

I created a custom view for taxonomy so that if you click on a Tag it shows a custom list. But what I would like it do is show the name of the Tag that you clicked on (automatically) at the top of the view. How can do this?

I tried using [wpv-post-taxonomy type="post_tag" format="name" item="$parent"] but that doesn't do anything.

Basically, after clicking on a Tag, I'd like the next 'view' to have the Tag name displayed above the view.

Thanks!

#1229848

Nigel
Supporter

Idiomas: Inglés (English ) Español (Español )

Zona horaria: Europe/London (GMT+00:00)

Hi Larry

Can you describe the links that are created and where these Views are inserted?

"If you click on a Tag it shows a custom list".

Clicking the tag means you are linking somewhere. Another page which has a View that knows which tag to display, because..?

#1230203

Sorry.

So in any view/page i have the tags displayed that are associated with a post, and they are clickable. So a post might have one or more tags (stocks, gold, silver, etc...). The theme did not have a usable archive page to display the tag when you clicked on it. So I created a view for the tag taxonomy - when you click on say 'gold' tag it brings up a list of all 'gold' related posts.

However I'd like to automatically place a 'title' on the top of the list to indicate that the list is related to the 'gold' tag (or whatever tag they just clicked on). so that there is a frame of reference.

Does this make sense?

#1231329

Hi Larry,

Thank you for sharing these details.

Nigel is away on vacations until next week and I'll be happy to follow up.

From your message, I understand that you've created a "WordPress Archive" view, for tag archive pages.

If that is correct, you can use the shortcode "wpv-archive-title" in the start of the "Loop Editor" section, to show the title of the tag whose archive page is being viewed:
https://toolset.com/documentation/user-guides/views-shortcodes/#vf-295335

Note: In case it is not a WordPress archive view and is a regular taxonomy view, you'll use "wpv-taxonomy-title" shortcode instead:
https://toolset.com/documentation/user-guides/views-shortcodes/#vf-153462

I hope this helps.

regards,
Waqar

#1231749

Neither one of those shortcodes does anything.

#1231989

Hi Larry,

It is strange that both shortcodes aren't working.

Can you please share temporary admin login details, along with information about the view in question?

I've set your next reply as private.

regards,
Waqar

#1232727

Hi Larry,

Thank you for sharing the access details.

Since the view in question ( enlace oculto ) is a WordPress archive view, I've replaced:


[wpv-post-taxonomy type="post_tag" format="name" item="$parent"]

With:


[wpv-archive-title]

And the title is now showing.
( screenshot: enlace oculto )

regards,
Waqar

#1232970

My issue is resolved now. Thank you!