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 - 421 through 435 (of 462 total)
Now you need to replace param with the correct shortcode parameter name and the wpcf-year with the correct slug for the custom field. You should add the slug with the wpcf- prefix attached.
Problem:
How to display taxonomy terms assigned to post hierarchical
Solution:
To display the taxonomy terms assigned to post in hierarchical way, you can use custom shortcode and use standard wordpress function "wp_list_categories" to display terms hierarchically.
Problem: I am using the wpv-post-featured-image shortcode with cropping applied, in a View of posts. However, some featured images are different heights. I want all the images the same size.
Solution: The "crop" feature only crops images, it does not stretch them to fill the dimensions you request. The original image must be at least as large as the crop dimensions, otherwise the image proportions will be incorrect when it is cropped.
Problem:
How to display related child post when post type is set to support hierarchical post structure where you set parent and child posts from same post type.
Solution:
You should query your view by post ID and set the query filter to filter post by shortcode attribute and pass the parent post ID as view's shortcode attribute to filter related post that belongs to same post type in hierarchical structure.
Problem: I would like to set up a "Bookmark" button so that Users can bookmark posts for reference later. Then I would like to set up a View to show each User their bookmarked posts.
Solution: There is not currently a built-in way to associate Users and Posts, so you would have to create something like this with CRED. You could create a repeating field on the post that stores User IDs, and use CRED to add or remove the current User's ID from this repeating field group on each post.