Title: jonodesign's Replies | WordPress.org

---

# jonodesign

  [  ](https://wordpress.org/support/users/jonodesign/)

 *   [Profile](https://wordpress.org/support/users/jonodesign/)
 *   [Topics Started](https://wordpress.org/support/users/jonodesign/topics/)
 *   [Replies Created](https://wordpress.org/support/users/jonodesign/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/jonodesign/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/jonodesign/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/jonodesign/engagements/)
 *   [Favorites](https://wordpress.org/support/users/jonodesign/favorites/)

 Search replies:

## Forum Replies Created

Viewing 1 replies (of 1 total)

 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Is it possible to query the results of wp_query?](https://wordpress.org/support/topic/is-it-possible-to-query-the-results-of-wp_query/)
 *  Thread Starter [jonodesign](https://wordpress.org/support/users/jonodesign/)
 * (@jonodesign)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/is-it-possible-to-query-the-results-of-wp_query/#post-6724374)
 * Figured it out through reading the wp_query codex – [https://codex.wordpress.org/Class_Reference/WP_Query](https://codex.wordpress.org/Class_Reference/WP_Query).
 * Basically all I needed to do was set a variable that captured the page title –
   which is either Monday, Tuesday, Wednesday, etc – then use the variable in arguments
   like so:
 *  $title = get_the_title();
    $args = array( ‘numberposts’ => -1, ‘post_type’ =
   > ‘activities’, ‘post_status’ => ‘publish’, ‘meta_query’ => array ( array ( ‘
   key’ => ‘day’, ‘value’ => $title, ‘compare’ => ‘IN’ ) ) );
 * It’s always nice to work it out by yourself!
 * John

Viewing 1 replies (of 1 total)