Forums › Forums › Search & Filter Pro › Custom template filtering not adjusting the content (and another question)
- This topic has 11 replies, 2 voices, and was last updated 10 years, 3 months ago by Anonymous.
-
Anonymous(Private) July 23, 2014 at 8:28 am #2835
Hey Ross,
If I get this plug-in to work the way I think/thought it would/should; then it’s a great plug-in! Unfortunately I can’t seem to get it to work a 100%, which is why I’m posting this support ticket.
I’ll try to explain the desired behaviour of the site and plug-in.
I’m building a site that has a few custom types and taxonomies, for which I’m using the wp-types plug-in (http://wp-types.com/). One of those custom post types is focussed on “members”, which can have a few taxonomies to further specify what kind of member it is. Like a taxonomy “function” to specify what instrument someone plays and another taxonomy to specify what his/her favorite color is (just an example to illustrate the case).
These taxonomies are not and cannot be hierarchical. They’re all main-level choices/siblings of one another.
All members are shown on: http://pkg.dev.mkleyne.nl/deelnemers/.
Now I’d like to use your awesome plug-in to filter the list of all members based on 3 taxonomies. Two of them are already shown on the link above. What I’d love is for your plug-in to filter the overview based on the choices made via those filters. Which I think is exactly the purpose of your plug-in, just like that movie database demo site you preview it on.
My problem is that I can see the container I specified being filtered by AJAX. Or at least it alters its opacity, through which I asume it targets it correctly. However; the results themselves are not filtered. Instead of showing only those members that match the filter(s), it continues to show all 4 (that are on there right now).
Disabling AJAX results in the same effect; still ‘working’ and still showing all results.
—
The other thing I want is for the permalink to keep ../deelnemers/ in it. If I change the slug to “deelnemers” that actually works, but this destroys clicking through to the item/single pages. Like: http://pkg.dev.mkleyne.nl/deelnemers/maarten-kleyne/. Right now that’s an actual page, but when I change the Search & Filter slug to “deelnemers” those item pages stop working and it shows me the overview page instead.
Is it at all possible to keep the “deelnemers” permalink, with your search structure behind it, intact while also keeping the item/single pages behind it intact?
—
I’ve tried several things but I can’t seem to get it to work. Hopefully you can help me get it to work. I think it’s possible, I just don’t know how.
If you need more explanation or settings changes; let me know. If it’s easier for you we can also discuss things over Skype (add me with “mkleyne-art” for it).
Kind regards, Maarten
Ross Moderator(Private) July 24, 2014 at 1:42 pm #2884Hey there, just to let you know I will be looking at this tonight.
Thanks
Ross Moderator(Private) July 31, 2014 at 1:41 pm #3081Hey Maarten, apologies the last 2 days I’ve barely been able to reach a computer – 100% I will be looking at this this evening (UK time) – it would be good if you’re around to check in so that we can have a discussion about this and get it resolved quickly otherwise this process will take a bit longer (and I do not provide support at the weekend – from Friday 6pm onwards).
Thanks
Anonymous(Private) July 31, 2014 at 2:09 pm #3087That’s alright, I fully understand. I’ll make sure I’m around on Skype. Or would you prefer some other way of contact? And what time would be best for you? UK time that is. It’s one hour later here (The Netherlands). I’ll probably be around regardless. But it’s good to know a time just in case.
Ross Moderator(Private) July 31, 2014 at 11:39 pm #3098Hey Maarten, just about getting on to it now – its late I know! Reading through everything now and will report back soon 🙂
Ross Moderator(Private) July 31, 2014 at 11:48 pm #3099Hey Maarten so I had a read through… first those links you sent show
403 forbidden
– perhaps I need some kind of access?RE the slug – there is no way to keep the two like you said, and unfortunately the plugin currently only supports 1 level deep – ie
yoursite.com/slug
but notyoursite.com/a/slug
…I don’t think this would be difficult to implement actually but there are so many other things that need doing in the plugin this will take some time to come.
RE the search & ajax, there seems to be something very basic wrong here possibly conflicting with the plugin – do you have any custom code which runs a
pre_get_posts
or something similar?Also, did you check the template that displays your results (with ajax turned off) uses the main WP Loop to display results, and does not contain a custom query within the template itself (ie,
query_posts
orget_posts
)?Basically your search results template should use the loop without any custom query – http://codex.wordpress.org/The_Loop and should be defined in S&F settings under
custom template
…Let me know if any of that helps, and if it doesn’t work you can go ahead and set me up as a user so I can do some digging?
Thanks!
Anonymous(Private) August 1, 2014 at 2:27 pm #3120Hey Ross, thanks for the reply. As you noticed I was off at the time. If it’s alright with you, I’d like to schedule a few minutes of your support time some day next week.
The 403 forbidden is caused by an IP-address block. For development purposes, I’ve limited access. Sorry. Should have thought of that. If you’d be a sport and let me know your IP-address I’ll grant you access. (You can send it through a private reply, or over Skype, if you want.)
If the slug doesn’t work that way, that’s alright. The actual filter itself is important. I can work around the slug. There’s a canonical link in place, so it should all be alright anyway.
That’s my guess as well, which is probably caused by the way I’ve set-up the templates. I think it’d be wise for us to have me show you the template coding, or have you provide me with the proper code for getting a working filtered results box. Then I can go and edit that working view to add the specific custom fields I want displayed.
Right now, this is my query (which probably doesn’t work well with your plug-in):
<?php $members = new WP_Query(array( 'post_type' => array( 'post', 'deelnemers' ), 'cat' => -1, 'posts_per_page' => -1, 'orderby' => 'title', 'order' => 'ASC')); if($members->have_posts()): ?>
As you can see, I only want to show the custom posts “deelnemers”. Each found item will be placed as a <li.. in the <ul id=”p-members”>, which is set as the ‘content selector’ in your plug-in. That last bit seems to work, because it edits the CSS of said selector. But that’s about all that happens.
—
When would be a suitable day for you to have a quick chat, over Skype or Google+ HangOuts? And at what time? I’d appreciate it if that’s possible. Let me know.
-
AuthorPosts