hi there,
I have been trying to use the custom post types/taxonomies to create a structure for my website.
what I am looking to create is the following structure:
https://replacecarkeys.com/toyota/ (with a template for all brands)
https://replacecarkeys.com/toyota/corolla (additional template for models)
so I am really having a hard time making this reality. I don’t understand if the brand should be a taxonomy or a custom post type and what the model should be. I installed CPT UI and created a custom post type called brands.
The idea is to have a post template for the brands and for the models and fill it up manually.
I did try to create a template but is not connecting to the custom post type template (I added it to brands in CPT/taxonomies section)
https://replacecarkeys.com/brand/ford/ (still structure is incorrect)
https://www.screencast.com/t/f7MIB1MztN
https://www.screencast.com/t/Eu2K73erOrQ cpt setting
https://www.screencast.com/t/GjdWQat4U0S5 template a created
Thanks for any assistance on his matter.
Hello,
I suggest having the CPT name Cars and taxonomy for brands -> https://prnt.sc/PKgNbz1FGC79 and checking the results also, please make sure you set on the blocks your custom post type.
You can find more details here
-> https://forum.tagdiv.com/custom-post-type-support/
-> https://forum.tagdiv.com/filters-sorting-taxonomies/
-> https://forum.tagdiv.com/edit-modules-flex-block-x/
Thank you!
Hi, I guess I was not clear enough to see this is the site I am trying to model after for better understanding:
https://lost-car-keys-replacement.com/audi/
https://lost-car-keys-replacement.com/audi/audi-80/
none of these are “category” pages or what you suggest ” taxonomies”
Each is a static page, page for Audi has general information about the brand (lot of text) and the models listed.
and the individual model pages have the relevant info on each model.
The question is there any way to generically nest CPTs? and also set custom page templates for each.
Thanks in advance!
Hello,
You can set an individual template for each CPT template and taxonomy.
Also, unfortunately, I don’t really understand what you want to achieve, that is, you can do this page with tagdiv Composer and to add the text you can use the column text element -> https://i.imgur.com/D3XUlzg.png
Thank you!
https://lost-car-keys-replacement.com/audi/
https://lost-car-keys-replacement.com/audi/audi-80/
I neeed to have this url order separating brands and models, and have a template for CTP (brands) and cpt (car mdoel)
so basically if I have 2 CPT, can I organize it in a way that one is like a category where I can put other custom posts inside? ie toyota/corola Toyota/yaris and so one. the template most have all seo configurations and text
Hello,
You can use Flex Loop or Flex Block X.
You can find more details here
-> https://forum.tagdiv.com/filters-sorting-taxonomies/
-> https://forum.tagdiv.com/custom-post-type-support/
-> https://forum.tagdiv.com/edit-modules-flex-block-x/
Thank you!
Hello,
To change the structure of URL you can check this guide https://www.wpbeginner.com/plugins/how-to-change-custom-post-type-permalinks-in-wordpress/
Thank you!
in case anybody needs a solution for creating this type of structure I solved this using a plug-in called: Nested Pages
you can easily add the structure you want with pages without code, and then just work with page templates on tag div composer.
