Saltar navegación

[Resuelto] Many to many taxonomy

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 21 respuestas, tiene 2 mensajes.

Última actualización por Minesh 1 year, 10 months ago.

Asistido por: Minesh.

Autor
Mensajes
#2707753

I thought of taxonomy archive for taxonomy "Rodzaje" but not sure if filtration of localization will be possible.

I will listen for suggestion.

#2707761

Minesh
Colaborador

Idiomas: Inglés (English )

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

With taxonomy archives, yes custom search is not suitable thing.

So, Can you please create a page where where you want to redirect when user click on the taxonomy term and share the link of that page?

#2708037

The thing is that I don't want to do it site by site by hand.
I need some semi automatic way.

#2708048

Maybe let's change it a bit (it may be easier).

I created posts of Localization with loop of related Companies for ex.:
enlace oculto
This is ok for now.

But I also want to have posts like:
enlace oculto
enlace oculto
enlace oculto
enlace oculto
enlace oculto
enlace oculto
enlace oculto
enlace oculto
enlace oculto
where is loop of Companies with given taxonomy (last part of link) but only related to Lokalization "Warszawa".
(List of pages (last parts of link) is taken from drop-down menu filter.)

And as mentioned before I need it to create itself along with every post created.
Can we achieve that?

#2708076

Minesh
Colaborador

Idiomas: Inglés (English )

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

You are mixing the two things here.

One is to display the related post and another thing is adding term slug to your post link.

1) One is to display the related post:
- I already guided you, how to display the related posts.

2) adding term slug to your post link:

And as mentioned before I need it to create itself along with every post created.
Can we achieve that?
======>
As shared before - There is no such feature available to add taxonomy term with post type slug and build the URL.

For such cases - you will have to use the permalink plugins that supports such URL:
- https://toolset.com/forums/topic/many-to-many-taxonomy/#post-2706050

#2708162

OK, but do you have an idea for auto creating posts with view listning of Companies with given taxonomy and related to specific localization?

#2708187

Minesh
Colaborador

Idiomas: Inglés (English )

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

OK, but do you have an idea for auto creating posts with view listning of Companies with given taxonomy and related to specific localization?
===>
Well - views do not do anything related to rewrite rules for permalinks.

For such custom permalink you will have to add such custom rewrite rule as required for your custom permalink.

Here are few related resources/tickets that might help you:
- enlace oculto.
- https://stackoverflow.com/questions/57765487/how-to-add-custom-taxonomy-in-custom-post-type-permalink
- https://toolset.com/forums/topic/prepend-taxonomy-for-custom-post-type/
- https://toolset.com/forums/topic/hierarchical-child-post-type-url/
- https://toolset.com/forums/topic/customizing-post-type-category-permalink-post-type-%CAtegory-postname/

The above is not the exact solution you want but might drive you further.

I hope this helps and for more personalized assistance around custom code, you can also consider hiring a professional from our list of recommended contractors:
- https://toolset.com/contractors/

#2708275

Combining second type of CPT, two types of taxonomy (one hierahical) and Permalink Manager Pro I achieved my goal.
Thanks for help. 🙂