Custom Query in einem Themify Theme über einen Hook in der functions.php

[themify_is_logged_in]
[php]
function custom_themify_query_posts_page_args( $query ) {
if( is_page( 69 ) ) {
$query .= ‚&meta_key=price&meta_value=22&orderby=meta_value‘;
$query = wp_parse_args( $query ); // convert to array
$query[‚date_query‘] => array(
array(
‚after‘ => ‚January 1st, 2013‘,
‚before‘ => array(
‚year‘ => 2013,
‚month‘ => 2,
‚day‘ => 28,
),
‚inclusive‘ => true,
),
);
}
return $query;
}
add_filter( ‚themify_query_posts_page_args‘, ‚custom_themify_query_posts_page_args‘, 100 );
[/php]
[/themify_is_logged_in]