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 - 241 through 255 (of 416 total)
Problem: I would like my Users to select one parent post, then have that parent post applied to a post relationship filter in each View they visit on the site until they choose another parent post.
Solution: You can store the selected parent post ID in a custom field on the User's profile, then use a shortcode attribute to pass that value into a post relationship query filter using a View shortcode attribute.
Problem: I would like to apply different Content Templates to products in different categories.
Solution: You can use the wpv_filter_force_template API to programmatically set the template applied to each archive page. This will override any selections for archives made in wp-admin.
Problem:
Select a Default Value from a Dropdown Filter and Apply the result to the page
Solution:
if you want to filter the view results as soon as you set the default option for your select dropdown - you need to add JS code to your view's JS box.