Forums › Forums › Search & Filter Pro › Using Pods + CPT, need *urgent* help please
- This topic has 3 replies, 2 voices, and was last updated 4 years, 7 months ago by Trevor.
-
Anonymous(Private) April 28, 2020 at 9:31 pm #241857
Trying to use the custom display method. Form is showing nicely, but results are not showing.
The output just doesn’t update with the search results. The dynamic count within the form does work, so it’s finding records.
Trying to use this:
$params = array( 'limit' => -1, // Return all rows 'search_filter_id' => '4767' ); // Create and find in one shot $mypods = pods( 'magazines', $params );
Trevor(Private) April 29, 2020 at 8:25 am #241871Whilst our plugin does support CPTs, standard custom fields and taxonomies created by PODS, we do not support, at this time, any of their advanced features. This is something we plan to do after we have released V3 (hopefully, it will be released around June 2020), possibly in V3.1 (which would be many months after 3.0).
You would need to use the standard wp_query function to create any output.
Anonymous(Private) April 29, 2020 at 2:59 pm #241996Understood, thanks. I’ve gotten it to work just fine now using WP_Query. I’m looking forward to V3 !!!
Two more questions, if you please.
1) For POST DATE, I need to offer only years (dropdown), can the date range be affected as such?
2) Is it possible to use links as filters? Like toggle buttons?
I need a setup like this:
ALL MAGAZINES CAR MAGAZINESSo that the ALL option is selected by default (radio?) showing all records
and that selecting CAR would filter to show only those recordsCurrently I’m using a dropdown, but it’s not ideal, because the field is a YES|NO for CAR and that gives me a dropdown with:
ALL
– ALL MAGAZINES (2)
– CAR MAGAZINES (1)Trevor(Private) April 30, 2020 at 12:07 pm #242129To answer your questions in turn.
1. At the moment, the only way to offer the user of your site a choice of just years would be if you had a custom field with just the years in. In V3 Pro addon, you will have the option to add custom form filters, which may well allow you to do as you want.
2. Maybe you could use a checkbox and style the filters to look like buttons? This is possible using CSS to hide the checkboxes themselves. This is because you can select a checkbox by clicking its label, and you can style the label differently depending on whether the (hidden) checkbox is checked or not. The problem would be that, by default, checkboxes do not have a default set.
-
AuthorPosts