Questions about Data Sources and filters
-
Hi,
I really like the plugin, but I am having some difficulty with the Data Sources and Grids concerning filters. I don’t know if this is because of me, your plugin or the plugin that created the custom post type and associated custom fields, categories and taxonomies, but I suspect that it is either me or the other plugin.So my question is about the Terms filter; I choose Posts as the Data Source, and then the post type of the other plugin (this is for a Checkbox field). What I want to achieve is to show in the form all the posts authored by the current user (and I can tick that box) in that post type, but filtered by particular categories, and I assumed that this is what the Terms filter is for (please correct me if I am wrong). However any search I put in for terms I know are valid comes up with ‘no results found’ (I know they are valid because if I ‘Get Data’ for just the post type and include ‘Terms’ in the Columns list, that column is populated with the terms I am searching for in the filter). In addition, I want this to be a generic form that will check and filter all the relevant categories whichever user is using the form (I have set it so that only users with relevant posts can see the form, but I obviously don’t know which categories each user has posts in and once operating this could change minute by minute), so how can this be achieved if it won’t allow me to enter the filter terms even when I do know the terms? I am very puzzled.
To explain a little further, the other plugin (Classified Listing) is to let people post classified ads on the front end, and I have hacked the template to add 3 forms to it, which display depending on which user is viewing, what they are viewing, if they are the author etc; I have three ‘types’ set up in the CPT (the plugin default is 5 with names like Buy, Sell, Rent etc, but these can be changed to whatever you want or dispensed with entirely), two of which are set up with only 1 category each, but one of them has about 40 categories/sub cats – I want to show this one only. The types are some form of weird taxonomy (I think) set up by the plugin, more like some kind of custom field, but no other plugin I have used in conjunction ever detects them, but the categories are detected, and in your plugin, if I choose Data Source as Terms, I can get the data of the categories, so I don’t understand why I can’t add these terms in the filter when the Data Source is Posts. Do I need to add some kind of code to my functions to fix this? Sorry to be a pain!
- The topic ‘Questions about Data Sources and filters’ is closed to new replies.