lboon
Forum Replies Created
-
Forum: Plugins
In reply to: [Pets] Filter [pets_archive]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
In reply to: [Pets] Filter [pets_archive]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
In reply to: [Pets] Filter [pets_archive]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
In reply to: [Pets] Display all pets on a Block on the home pageIt’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.