Hi,
I'm following this doc
https://toolset.com/documentation/user-guides/view-layouts-101/
I'm trying to simply display my CPT (Exhibition)
I have a Many to many setup were exhibition have 1 or more artists (and viceversa)
My problem is that, when creating a Table as a WP Templates archive for Exhibition I don't get the filterable header option.
And when creating a table in a View I get the header filters but i don't get relationship between my CPT.
So I need a workaround to be able to display my Exhibitions with the corresponding Artists that can be filtered by Post Name (Ascending and Descending) and also by date (Custom Term Field)
or
A workaround to be able to get [wpv-post-link id='$artistas'] outside the loop (in a regular page). This is not working when usinf it on a homepage for example
Thanks
Dear Cesar,
Views plugin is using wordpress class WP_Query to query posts, it is not possible to order the query by the parent post type information.
https://codex.wordpress.org/Class_Reference/WP_Query#Order_.26_Orderby_Parameters
So I suggest you try this:
1) Create a table view, query the child posts, and display the parent Artists post information
2) Setup javascripts to sort the table by Post Name and date, for example:
Tablesorter
See their document:
hidden link
The only way to filter by name Ascending and Descending is using tables??
Can I create one of those nice search templates were I can short my post by name and date using a Bootstrap Grid?
Thanks?
It is only an example, you can try with other custom JS codes, for example:
DataTables Bootstrap 3
hidden link
Ok, Thanks
I was refering to create it with native Toolset support. So I guess the answer is no.