Title: selective post query
Last modified: August 22, 2016

---

# selective post query

 *  Resolved [carosea](https://wordpress.org/support/users/carosea/)
 * (@carosea)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/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?

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Thread Starter [carosea](https://wordpress.org/support/users/carosea/)
 * (@carosea)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/selective-post-query/#post-5848024)
 * Kathryn
 * Update on this – I have now put in the code but am not sure where to put my the_wp_tiles
   call – at the moment I have it in my template file just after the endwhile (loop
   end)but it gives me the correct search results but a whole page (post) for each
   with an image on each instead of my tiled grid on one fictive page. I don’t know
   if this is the place to ask this?
 *  Thread Starter [carosea](https://wordpress.org/support/users/carosea/)
 * (@carosea)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/selective-post-query/#post-5848270)
 * sorted this now but have started another thread which is prbably related.
 *  Moderator [Kathryn Presner](https://wordpress.org/support/users/zoonini/)
 * (@zoonini)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/selective-post-query/#post-5848290)
 * OK, glad you got this one sorted.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘selective post query’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/fictive/1.1.2/screenshot.png)
 * Fictive
 * [Support Threads](https://wordpress.org/support/theme/fictive/)
 * [Active Topics](https://wordpress.org/support/theme/fictive/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/fictive/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/fictive/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Kathryn Presner](https://wordpress.org/support/users/zoonini/)
 * Last activity: [11 years, 2 months ago](https://wordpress.org/support/topic/selective-post-query/#post-5848290)
 * Status: resolved