I have a custom post type for current affairs. I created a content template to display the custom fields of post type.
In my content template, I created 5 categories of current affairs each category is of repeatable filed group type and each repeatable group contains three custom fields [image, single line and multiple line fields].
Apart from that there is one more custom field - 'Date' to search the posts by date.
I also created a current affair section in Homepage of my website where I want to put only heading of the recent current affairs ordered by my custom field - 'Date'.
[1] What I did is that i created views for each category having repeatable field group. When I'm trying to order current affairs using custom field 'Date' it is showing NO ITEMS FOUND .When ordering is changed to 'post-date' it displays all current affairs for that particular category, but i want to display current affairs of particular date at a time.
[2] I also want to redirect an user to see more current affairs when they click on "View more". I'm not sure about how to get the post url of parent post repeatable filed group.
[1] What I did is that i created views for each category having repeatable field group. When I'm trying to order current affairs using custom field 'Date' it is showing NO ITEMS FOUND .When ordering is changed to 'post-date' it displays all current affairs for that particular category, but i want to display current affairs of particular date at a time.
Okay it is not possible to order a View of Repeatable Field Groups by a custom field from their parent Current Affair post. Instead, you could create a View of Current Affairs, ordered by this Date field. Sort and filter this View first. Then inside that View of Current Affairs, you could place a nested View of International RFG, where the RFG owner is set by the current post in the loop.
[2] I also want to redirect an user to see more current affairs when they click on "View more". I'm not sure about how to get the post url of parent post repeatable filed group.
You want to display a link to the RFG's parent Current Affairs post? You can use the Fields and Views button to insert "Post title with a link". In the popup, use the Post Selection tab to select the parent Current Affairs post (see the screenshots). The system will generate the appropriate shortcode.
My issue is resolved now. Thank you!