• Resolved carosea

    (@carosea)


    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

    (@carosea)

    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

    (@carosea)

    sorted this now but have started another thread which is prbably related.

    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.