Pastebin–>Custom shortcode Event/Locations List… Can't search ??
-
The shortcode works but just can’t “search”…
https://pastebin.com/mcaE69Ja
Cool template.. makes the lists in a “table” sort in place of a list…
considering I have over 200+ locations.. and more to come…OK.. this should work.. but doesn’t
[custom_locations_list state="MD"
I tried to add filters to the Pastebin file… but I’m just not experienced to figure it out..
The top of the Pastebin looks like this…
function em_mod_custom_locations_list(){ global $wp_query; $events = EM_Locations::get(array('scope'=>'all','limit'=>200)); ?>
and the bottom is this…
add_shortcode('custom_locations_list', 'em_mod_custom_locations_list');
It should be “searchable” ? Yes ? If it is I don’t have the knowledge to get the “filter” hooked in…
I tried a bunch of ideas…I can “hardcode” the file… with anything.. even my custom taxonomy’s..
ie:
$events = EM_Locations::get(array('scope'=>'all','limit'=>200,'locationtype'=>'bar','locationstatecategory'=>'md'));
And I great results..
But it should be searchable with the shortcode.. even the “stock”
state="MD"
?This shouldn’t be too hard.. I just don’t understand “add_filter” or whatever it takes to make it work..
Thanks again of course..
- The topic ‘Pastebin–>Custom shortcode Event/Locations List… Can't search ??’ is closed to new replies.