Types plugin lets you easily create relationships between different post types and connect them using GUI controls. You can also connect multiple post types and build many-to-many post relationships.
When you ask for help or report issues, make sure to tell us what you have created so far and the structure that you want to achieve.
Viewing 15 topics - 796 through 810 (of 851 total)
Problem:
What are the options for displaying different content to different users on the front-end?
Solution:
To display different content on the front-end according to some criteria you essentially have two options.
If the thing being tested relates to the person doing the looking (the user browsing the website is registered and has a certain role because they have paid for a particular membership, for example) then you can use Access to restrict the visibility of whole pages, or to selectively show certain content on a page (as described here: https://toolset.com/documentation/user-guides/access-control-texts-inside-page-content/).
If the thing being tested relates to the thing being looked at then you would need to add custom fields to the content being viewed and then use the wpv-conditional shortcodes to test the content of those custom fields and selectively display what is wrapped in the shortcode, as described here: https://toolset.com/documentation/user-guides/conditional-html-output-in-views/
Problem:
Is it recommended to use taxonomies (with checkboxes) or checkboxes custom fields?
Solution:
If you intend to filter a View using these checkboxes you should probably use taxonomies rather than a checkboxes custom field, because within WordPress taxonomy filters are more performant that meta query filters (https://tomjn.com/2017/02/27/not-post-meta-bad/).
See the answer below for a more detailed discussion.
Problem:
What will there be new in Toolset after this update that you call "New Many to Many Relationships"?
Solution:
It will be a new way to connect Posts.
Until now they could be connected only in a "one to many" way.
Now, you will be able to connect as many posts to as many posts you want and display them as well as create them with Toolset.
Problem:
How to display a list of related posts using relationships?
Solution:
You need to create a relationships that stores the connections between the posts that you want to connect.
In this thread the client wants to display excursion posts that are related to the currently displayed holiday home post (and vice versa), which means creating a many-to-many relationship.
Problem:
Can we somehow assign users to posts, as in a Post Relationship?
Solution:
No.
The only official connection is the authorship.
You can though mimic the Users in a Custom Post type, which you synchronize with Custom Code or manually, and then use this Post type as you like in relationships.
The issue here is that the user wanted to display the parent name on the child post form.
Solution:
This is possible if the form was clicked to from the parent post itself. This means that the parent ID will be present in the URL, so you will have a url parameter similar to this.
parent_job_id=3073
Now to get this to display the parent title you need to use the shortcode.
Problem: I have a CRED form on my site that has been in use for a while. After a recent update, a parent post select field does not include all options that were previously shown. I have the filter cred_get_potential_parents_post_status in place in my theme.
Solution: Return an empty string in this filter if you wish to show parent posts of all statuses.
add_filter('cred_get_potential_parents_post_status', '_pr_belongs_post_status');
function _pr_belongs_post_status($statuses)
{
return '';
}
Problem:
When trying to connect existing posts in a relationship (with the betas) it is not possible to choose from the possible related posts, the select dropdown appears unresponsive.
Solution:
The options in the select dropdown are hidden behind the modal, which is caused by a problem with the Revolution Slider CSS.
Until they update their CSS it is necessary to disable the Revolution Slider plugin while connecting posts.