Hello @renenee
Thank you for using Filter Everything plugin.
It is possible only if you are familiar with PHP and you can modify filtered WP_Query via the ‘wpc_filtered_query_end‘ hook that the plugin contains.
Thank you for your response.
I’m attempting to use the information you’ve given me, and adapt it based on another post in this support thread, but I’m receiving a “Nothing Found” result on the page. Can you let me know where I’m going wrong?
// Filter Everything sort by modified date
do_action( 'wpc_filtered_query_end', $query );
function wpb_custom_query( $query ) {
if( $query->is_main_query() && ! is_admin() && $query->is_archive() ) {
$query->set( 'meta_key', 'modified' );
$query->set( 'orderby', 'post_modified' );
$query->set( 'order', 'ASC' );
}
}
add_action( 'wpc_filtered_query_end', 'wpb_custom_query' );
Much appreciated.