Custom field in flexible post query?
-
hello there!
It is possible “adding” custom query in flexible post query? For example i want to add to existing flexible post template this query:
new WP_Query( array( 'year' => $today["year"], 'monthnum' => $today["mon"], 'day' => $today["mday"], 'meta_key' => 'wpb_post_views_count', 'orderby' => 'meta_value_num', 'order' => 'DESC' ) );
(wpb_post_views_count is counting the pages views)… So i want to get the top viewed posts from current day… How can this be done in any flexible post template?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Custom field in flexible post query?’ is closed to new replies.