With the Views plugin you can create different Views elements to display all your custom types and content on the front-end, without coding. You can also create powerful parametric searches and add pagination to your content lists.
When you ask for help or report issues, make sure to tell us the options of your View.
Viewing 15 topics - 1,201 through 1,215 (of 1,539 total)
I would place Views on main page of BuddyPress group to display posts of users who belong to this group.
There is possibility in BuddyPress page to place Views but how to select posts respective users of the group?
Solution:
Buddypress plugin stores "user group" in a custom database table "wp_bp_groups_groupmeta", which is not a wordpress user meta or post meta, and it is out the range of WordPress, so you can not filter the result by Buddypress "user group" in Toolset plugin
Problem:
The user would like to display draft posts for logged-in users.
Solution:
There are two ways to achieve this:
1. Using two views, that are displayed conditionally based on the logged in users.
One view will be displayed to non logged in users.
Another view will be displayed to logged-in users. In this view, add a query filter on post status to choose the statuses that you want to display. Check this article https://toolset.com/documentation/user-guides/views/filtering-views-query-by-post-status/
2. Using one view, and altering the query filter programmatically. You can use the wpv_filter_query and if the user is logged in, add the other statuses to the view's query arguments.
Problem:
The user would like to display fields in a repeatable field group of a related post.
Solution:
Repeatable groups need to be displayed using a view. And because you want to display the repeatable group from a related post you will need to create a content template too. The content template will be used to switch the context from the current post(bonus) to the related post(casino), and the view needs to be inserted inside this content template and hold a query filter on the relationship of the repeatable group. Does it make sense?
You will be able to display the content template by using the item attribute the same way it is used when you want to display a regular custom field.