selective post query
-
Kathryn
I am using wp-tiles plugin with fictive and trying to get it to display a set of posts on one page only (front static page only) where a birthday (F d) eg. February 28 is equal to todays date (ie Month and Day). I am trying to simplify it and use a meta key already set up as birthday in that format.$query = new WP_Query( array( 'meta_key' => 'birthday' 'meta_value' => date( 'F d' ) ) ); the_wp_tiles( $query );My question is about where I put this in relation to the existing loop in my template page. I created the template page by copying page.php into my child theme and then set it up with a template tag at the top, selected it for my static front page. But I am not sure where to put the above code in this file (and/or if it is correct) and do I need to change the while posts get posts line?
The topic ‘selective post query’ is closed to new replies.
