Title: lboon's Replies | WordPress.org

---

# lboon

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

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

 Search replies:

## Forum Replies Created

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

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Pets] Filter [pets_archive]](https://wordpress.org/support/topic/filter-pets_archive/)
 *  Thread Starter [lboon](https://wordpress.org/support/users/lboon/)
 * (@lboon)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/filter-pets_archive/#post-14301784)
 * Thanks! The field value with “quotation marks” and spaces in between worked perfectly!
   However, I noticed the limit=10 function doesn’t seem to work for me. The hide_nav
   works, the random function works as well, but the number of posts shown is always
   the same as it is on the regular Pets page. Anything I can do to make this work?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Pets] Filter [pets_archive]](https://wordpress.org/support/topic/filter-pets_archive/)
 *  Thread Starter [lboon](https://wordpress.org/support/users/lboon/)
 * (@lboon)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/filter-pets_archive/#post-14279336)
 * This is fantastic and is exactly what I was looking for! It works great, thanks
   so much! I just had one follow up question: if one of my ‘options’ is quite long
   and has spaces in its name, how do I refer to that in a filter in the shortcode?
   E.g. ‘No longer adoptable’ I’ve tried with quotation marks, with spaces, without
   spaces, with ‘-‘ instead of spaces, using only the first word,.. Thanks!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Pets] Filter [pets_archive]](https://wordpress.org/support/topic/filter-pets_archive/)
 *  Thread Starter [lboon](https://wordpress.org/support/users/lboon/)
 * (@lboon)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/filter-pets_archive/#post-13952596)
 * To follow up on my question under number 1, I’m trying to adapt the pets_archive
   shortcode. So far, I’ve been able to change it to only show 3 specific dogs:
 * $pets_query = new WP_Query( array(
    ‘post_type’ => ‘pets’, ‘post_status’ => ‘
   publish’, ‘post__in’ => array( 2155, 8926, 1992 ), ));
 * What I would like is to show all dogs of which a given Field has been set to 
   a given Value. Any ideas on how I could do that? I’ve tried by squeezing ‘key’
   and ‘value’ into this, but then the page gives an error. Thanks!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Pets] Display all pets on a Block on the home page](https://wordpress.org/support/topic/display-all-pets-on-a-block-on-the-home-page/)
 *  [lboon](https://wordpress.org/support/users/lboon/)
 * (@lboon)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/display-all-pets-on-a-block-on-the-home-page/#post-13853980)
 * It’s great that the new shortcode [pets_archive] now let’s us show the full list
   of pets anywhere on the site. It would be even better if in the future we could
   show a filtered selection of pets (in my case, the pets that should urgently 
   be adopted, for which I’ve created a field that’s searchable) that I can highlight
   on the main page of the website.

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