Tell us what you are trying to do?
Further to the 3 way relationship using taxonomy, I made an amendment to the script that you setup and it crashed the site, Now the website only comes back up when toolset is disabled.
Is there any documentation that you are following?
I wonder if I can request Waqar's assistance on this as it's kind of a follow-on from the last ticket which unfortunately was auto-closed just a couple of days ago.
If toolset plugin is activated, the site shows an error: There has been a critical error on your website. see attached.,
If I rename the plugins directory (as suggested in a link from the error message), I can restart the website but all plugins are disabled. The if I rename the plugins directory back to "plugins", I can then selectively activate the plugins. But as soon as I activate any toolset plugin, the website crashed.
You won't have to reinstall the Toolset plugins or rebuild everything from scratch.
Here are the steps, that I'll recommend:
1. Your first goal should be to make the custom code snippets ineffective. If you've been including them through WP Admin -> Toolset -> Settings -> Custom Code, you can include the following line in your website's "wp-config.php" file:
( ref: https://wordpress.org/support/article/editing-wp-config-php/ )
define( 'TOOLSET_DISABLE_CODE_SNIPPETS', true );
This will disable the Toolset's custom code feature and the website will not crash, once you'll activate Toolset plugins.
2. Individual custom code snippets added through the Toolset's custom code feature are saved in files in the "/wp-content/toolset-customizations/" folder.
Once the website is back on with Toolset plugins, you can edit those files and remove the custom from them, so that they don't break the website again.
After that, you can remove the code added in step 1.
3. In the last step, you can share the code changes that you added to my originally proposed solution and I'll be able to share some pointers for the adjustments.
Very important: The custom code examples from our forum are shared to get you started in the right direction and you're welcome to adjust them as needed. However, if you're having difficulty making changes to that code on your own, it would be safer to hire a professional from our list of recommended contractors: https://toolset.com/contractors/
I defined a new taxonomy and I am trying to pull in terms from that taxonomy but for some reason, following your guidance, i cannot retrieve terms from the new taxonomy. Can you help with that - I have a new code snippet you can check please.
If I understand correctly, the website needs to have another taxonomy 'Level3-Services', and the terms from this will also be included in the process of automatic "Service pages" creation.
Similarly, the shortcode to get the different levels of taxonomy terms will also need to be extended to support this new taxonomy 'Level3-Services'.
I've spent some time creating the logic of this addition but noted that the introduction of another level of taxonomy greatly complicates the initially discussed requirement. As I mentioned in my previous reply too, we can only share some suggestions and pointers over the support forum, when it comes to code customization. For more detailed and exclusive customization assistance, we recommend hiring a professional from our list of recommended contractors: https://toolset.com/contractors/
This will allow you to discuss the entire project's requirements with your developer and he/she will be able to assist you in a more timely and efficient manner. It is also possible that after reviewing the complete requirements, he/she can come up with an even better approach than what I've suggested, already.
I have already created the logic and page structure using the additional taxonomy. The shortcode has been coded and tested; it generates all the pages correctly. FYI Its the 1st code in the snippets list, with my name in the description.
I am just struggling to pull in the terms from this additional taxonomy on the created pages. Just need a pointer in the right direction to see where I am going wrong.
I've checked your website's code snippet "custom-shortcode-for-auto-level3-service-page-creation.php" and noticed that it is setting the taxonomy term items for the "location" and the "brand-and-model" taxonomies, but not for the 'level3-service' taxonomy.
If you'll check the created "Service Pages" posts at WP Admin -> Service Pages, you'll see that the column for the 'level3-service' taxonomy is empty.
( screenshot: hidden link )
In the code snippet, where you're creating an array for the new post creation, you can try changing the array:
After that, you can delete the existing posts, create them again and see if all the taxonomy term items are correctly attached to the newly created posts.