Passer la navigation

[Résolu] Help setting up custom post types & taxonomies

This support ticket is created Il y a 1 year, 3 months. 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 -

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

Ce sujet contient 5 réponses, a 1 voix.

Dernière mise à jour par Minesh Il y a 1 year, 3 months.

Assisté par: Minesh.

Auteur
Publications
#2799536

Hi,

I purchased this plugin as I have a website I'd like to create for selling various types of machinery. Only I will be adding listings to this website, approximately 5-10 a month.

I've broken the business down into 3 main categories:

1) Agricultural Equipment
2) Plant & Machinery
3) Commercial Vehicles

How would I structure the post types & taxonomies to achieve the following URL structure?

lien caché (all listings)
lien caché (only agricultural listings)
lien caché (only plant & machinery listings)
lien caché (only commercial listings)

Is it possible to do something like this?

I appreciate that this might not be very clear so if you have any questions then please let me know.

Thanks,
Alfie

#2799586

Minesh
Supporter

Les langues: Anglais (English )

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

Hello. Thank you for contacting the Toolset support.

If you want such a listing as you mentioned then you will have to create post type.

lien caché (all listings)
==>
Create post type "Machinery"

lien caché (only agricultural listings)
==>
Create post type "Agricultural"

lien caché (only plant & machinery listings)
===>
Create post type "Plant Machinery"

lien caché (only commercial listings)
===>
Create post type "Commercials"

You can follow any of the courses we offer that might help you:
=> https://toolset.com/course/

#2799613

Hi Minesh,

Many thanks for your response.

Would it be possible to have all of the posts automatically list on the "Machinery" page from the other categories?

I'd like to have the main archive page, "Machinery", and I would also like to have pages for each different category.

Kind regards,
Alfie

#2799616

For instance, on the homepage I would also like to have a "Most Recent" section that pulls in the 6 most recent machines I've listed (from all categories).

#2799617

Or alternatively, if the above wouldn't be possible. How would I go about doing something like this:

lien caché
lien caché
lien caché
lien caché

#2799639

Minesh
Supporter

Les langues: Anglais (English )

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

Would it be possible to have all of the posts automatically list on the "Machinery" page from the other categories?

I'd like to have the main archive page, "Machinery", and I would also like to have pages for each different category.
===>
Yes - you can have post type "Machinery" and then you can add taxonomy "Machinery Types" and add terms to caregorise your Machinery posts.

In this case please note that the possible URL format will be:
- lien caché

And for taxonomy archive - Lets say you hve taxonomy term added "Commercials" to the taxonomy "Machinery Types". Then possible URL structure for taxonomy archive will be:
- lien caché