Views plugin provides an API, making it easy to display Views output using PHP.
When you ask for help or report issues, make sure to tell us all related information about your View and the data that you want to display using the Views API.
Viewing 15 topics - 391 through 405 (of 458 total)
Problem: I'm trying to use Layouts, WPBakery Page Builder, and the Newspaper theme together but I'm not able to get my page templates to appear as expected.
Solution: Toolset Layouts and WPBakery should not be used together, so it's best to deactivate the Layouts plugin. The Newspaper theme doesn't work out-of-the-box with Content Templates, but you can follow the steps in our Theme Support for Content Templates document to help fix that problem.
Add this function name in Toolset > Settings > Frontend Content > Theme support for Content Templates:
Problem:
I have a View with filters, What I would like to do is add a small image to each category filter, so that next to the checkbox for category filter, there would be a small icon to give a visual representation.
Solution:
This is not possible at moment using built-in Toolset options. But if you want to give it a try with custom solution then please note this requires a custom code or modifications which falls into Custom coding & custom development and it is out of support policy (https://toolset.com/toolset-support-policy/). So we recommend to contact Toolset recommended service providers to further discuss the custom approach. We have some recommended list of service providers here if you would like to take a look: https://toolset.com/contractors/
Problem: I am using ACF relationship fields to create links between two custom post types - Practices and Events. The Events CPT contains a Repeating Field Group (RFG) from Types. One of the fields in that RFG is a custom date field. On the Practice Area single post, I would like to display all the RFGs that occur on or after today, and also belong to an Event related to the current Practice Area post in the ACF relationship.
Solution: Use custom code to determine the IDs of the Event posts that are related to the current Practice Area. Not sure how that works, so consult the ACF documentation.
RFGs are essentially children in a parent/child relationship with the post where they are saved. Use the toolset_get_related_posts API to determine which RFG post IDs are associated with those Event IDs, and push those RFG IDs into an array. Pass those IDs into a View of RFG's post ID filter using render_view. Add a custom field date filter to the View of RFGs by date in addition to post ID. If no related RFG IDs are found, do not render the View.