wabw media group
Fils de soutien créés au cours des 30 derniers jours : 0
Sujets de forum favoris
This user has no favorite topics.
Sujets de forum créés
Status | Sujet | Supporter | Voix | Publications | Nouveauté |
---|---|---|---|---|---|
Trying to query posts in php with a custom field from an intermediary post type
Commencé par : wabw media group in: Toolset Professional Support |
|
2 | 4 | Il y a 5 années et 1 mois | |
no results by default until dropdown selection is made for a relationship filter
Commencé par : wabw media group
in: Toolset Professional Support
Problem: Solution: if ( $view_id === 694 ) { // the view_id if ( isset( $_GET['wpv-relationship-filter'] ) && ( $_GET['wpv-relationship-filter'] == 0 ) ) { // When no option is selected, the filter will hold 0 $query_results->posts = array(); $query_results->post_count = 0; $query_results->found_posts = 0; } } Notice: This is for an example with one parent-child relationship. Depending on your use case, it may need to be adapted Relevant Documentation: |
|
2 | 12 | Il y a 5 années et 1 mois |