Skip Navigation

[Résolu] Redirect url

This support ticket is created Il y a 5 mois et 1 semaine. 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.

Aucun de nos assistants n'est disponible aujourd'hui sur le forum Jeu d'outils. Veuillez créer un ticket, et nous nous le traiterons dès notre prochaine connexion. Merci de votre compréhension.

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 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

Ce sujet contient 3 réponses, a 2 voix.

Dernière mise à jour par Minesh Il y a 5 mois et 1 semaine.

Assisté par: Minesh.

Auteur
Publications
#2702608

Hi there,
you told me in this ticket : https://toolset.com/forums/topic/view-in-archiive/#post-2695230
That i have to create a view instead use archive wordpress, but how i can do to manage url for custom post type ?

Thanks a lot

#2702752

Minesh
Supporter

Les langues: Anglais (English )

Fuseau horaire: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

Here is the Doc that shows information how you can enable the legacy views:
- https://toolset.com/course-lesson/enabling-legacy-version-of-toolset-views/

Here is the Doc that shows information about how you can create views in legacy mode:
- https://toolset.com/documentation/legacy-features/views-plugin/

Do you mean you want to display single post link? if yes, you can display that with [wpv-post-url] shortcode:
- https://toolset.com/documentation/programmer-reference/views/views-shortcodes/#wpv-post-url
or [wpv-post-link] shortcode:
- https://toolset.com/documentation/programmer-reference/views/views-shortcodes/#vf-153370

#2702883

Hi there, thanks for the legacy view.

I’ll explain what I need.

In this URL: les-formateurs-du-digital.fr/?category=test

It seems okay with the legacy view to display some information from the test category and information from the CPT associated with this category.

First question: Can I use only one view to get information from the category and CPT, or do I need to create two views?

Second question: These URLs are not really clean. I need a URL like this: les-formateurs-du-digital.fr/test or les-formateurs-du-digital.fr/category/test or something similar.

#2703005

Minesh
Supporter

Les langues: Anglais (English )

Fuseau horaire: Asia/Kolkata (GMT+05:30)

First question: Can I use only one view to get information from the category and CPT, or do I need to create two views?
===>
It depends what information you would like to display and how.

Normally, For instance:

if you have a post type Book with taxonomy "Book Authors" and custom fields (Book Name, Book Status, Book Cover Image, Published Year).

Now, when you create a view to display post type Book, with this view you can display Books posts with attached taxonomy terms for "Book Authors" and custom fields (Book Name, Book Status, Book Cover Image, Published Year).

Second question: These URLs are not really clean. I need a URL like this: les-formateurs-du-digital.fr/test or les-formateurs-du-digital.fr/category/test or something similar.
===>
I'm afraid that this is not possible due to the nature of a WordPress Query and the Custom Query parameters added by Views that is eventually added to support parametric search as we need to pass the URL arguments to the Query so it returns the correct results.