Problem:
The user was losing the content template after each post update.
Solution:
The content templates do not have language information attached, so when you update a post, the content template dropdown is empty and it saves "None" as the content template.
Run "Set language information" action in WPML->Support->Troubleshooting. Check this screenshot http://prntscr.com/tb73nm
Then, assign a content template to a post, make sure it is working. Save the post again and check if the content template is lost, it should not. I could have run this action, but I need to make sure a database backup is secured before.
Problem:
The user was losing the content template for posts on each post update.
Solution:
It turns out that this happens because of WPML. The content template does not have language information attached, which blocks them from being queried by Toolset. When saving a post, there is simply no content template to use.
The solution is to assign language information by running "Set language information" in WPML->Support->Troubleshooting, after a database backup.
Problem:
Can we add Custom Taxonomy Terms to permalinks like we can add native WordPress Taxonomy "Category" Terms to the permalinks?
Solution:
No, this is not possible for Custom Taxonomies.
We suggest adding your voice to https://toolset.com/home/contact-us/suggest-a-new-feature-for-toolset/, describing the precise feature and how it should work so Toolset Product Management can evaluate possible implementations in eventual future development.
Problem: I have three post types in the following relationships:
Company - Brand (one-to-many)
Brand - Post (many-to-many)
I would like to show a View of all the Posts related to a given Company, but I would like to ensure there are no duplicates displayed.
Solution:
1. Create a View of Posts and add a post relationship filter for the Brands-Posts relationship. Configure the post relationship filter so that the Post is related to "the current post in the loop". Use the Loop Wizard to create a "List with separators" output style. Insert the post ID shortcode in the loop. Remove everything inside the wpv-no-items-found shortcode.
2. Create a View of Brands and add a post relationship filter for the Companies-Brands relationship. Configure the filter so that the Brand is related to "the post where this View is shown". Use the Loop Wizard to create a "List with separators" output style again. This time, insert the View from step 1 in the loop. Again, remove everything inside the wpv-no-items-found shortcode.
3. Insert the View of Brands in the Company post template. You should see a comma-separated list of numbers appear. These numbers should be all the Post IDs related to all the Brands related to the current Company. It's okay if there are duplicates here, the next step will fix that.
4. Create a new View of Posts and add a post ID Query Filter, set by a shortcode attribute "ids". Use the Loop Wizard to design the list of Posts however you would like. For now, you can just insert the post title with link field so you can verify everything is working correctly.
5. Place the new View of Posts in the Company post template using a shortcode, and add the "ids" shortcode attribute. Place the View of Brands shortcode in the value of the ids shortcode attribute, like this:
[wpv-view name="Your New View of Posts" ids="[wpv-view name='Your View of Brands']"]
Now the list of related posts should appear in the Company template.