Just released a new WordPress plugin:
Views Output Formats – download from WordPress.org
It lets you export your WordPress data in XML and JSON formats easily, and integrates with the Toolset Views plugin.
Just released a new WordPress plugin:
Views Output Formats – download from WordPress.org
It lets you export your WordPress data in XML and JSON formats easily, and integrates with the Toolset Views plugin.
Research
Move
Application-specific: WordPress
Post-move
Anything missing? Post a comment!
Conditionals in Toolset Views has always been a bit wonky – wpv-if has a lot of quirks and often gives unexpected (and erroneous) results.
Luckily, there is now an official documentation page showing examples for common wpv-if usage! See link below.
This is also a good snippet for manipulating WP_Query args in general. For stuff Views doesn’t provide a GUI for yet.
Instructions
Add code in your theme/functions.php (Although creating a Plugin would be better, so we don’t have issues if themes are changed later on)
add_filter('wpv_filter_query', 'exclude_specific_page_func', 10, 2); function exclude_specific_page_func($query, $settings) { if($settings['view_id'] == 123) { $query['post__not_in'][] = 456; $query['post__not_in'][] = 457; $query['post__not_in'][] = 458; } return $query; }
Source
Views: Post parent is -not- specific page
More info