Problem: I am trying to use Conditional HTML in a WPBakery module, but they don't seem to be working as expected.
Solution: It appears that there is a problem with the shortcode builder, and it is inserting nested single quotes. Our developers are aware of the issue and are working towards a resolution. In the meantime, nest double quotes and single quotes to prevent these conditional failures.
I have two post types: Studios and Artists. A Studio can have many Artists, and an Artist can belong to many Studios (set up as a many-many relationship). I have Toolset forms to create each post type.
However, I cannot work out how to add a field to the Artist CRED form that automatically creates a link to the current Studio - I want to use the Artist Toolset form in the content template for a Studio.
Solution:
It is possible with some custom codes, for example:
Problem: I would like to create a View of posts in a M2M relationship, and I would like to sort the View by a custom field stored on the intermediary post type.
Solution: It is not possible to sort a View of one post type by a custom field applied to another post type. Instead, you can make the intermediary post type visible in wp-admin and create a View of the intermediary post type sorted by the custom field. In the Loop of the View, you can output information about the related posts using Views shortcodes.
Problem: I would like to create relationships between posts in the same post type.
Solution: It's not currently possible to use post reference fields or post relationships to link posts in a single post type. The best way to handle those relationships is to use a taxonomy.
Problem: I have a View of custom post types that I would like to display in different areas, where the filter is variable based on the location of the View.
Solution: Use a shortcode attribute to configure a dynamic View filter.