Forums › Forums › Search & Filter Pro › Use of s&f with permalink rewrite
- This topic has 5 replies, 2 voices, and was last updated 7 years, 5 months ago by
Trevor.
-
Anonymous(Private) September 17, 2017 at 3:57 am #131492
Hello!
I use the plugin “Custom Post Type Permalinks” to give new permalinks to my posts like “mypage.com/article/1887” and the 1887 is a taxonomy-term and it works good.
Is it possible to filter these posts with Search and filter?
Thank you!Trevor(Private) September 18, 2017 at 3:51 pm #131641Have you tried to do this? I would make a test using the shortcode method first:
https://www.designsandcode.com/documentation/search-filter-pro/search-results/using-a-shortcode/
If that works OK, then look at the alternative methods if they might suit you better.
Anonymous(Private) September 18, 2017 at 7:30 pm #131726Thank you for your answer.
I already tried that and I only see some of the taxonomies and categories. It seems only one or 2 posts are in the cache of s&f. Now I find out that this problem is caused because i sort the posts by a metavalue in alphabetical order. When i sort by modified date all posts are shown now – great 🙂
Now i sort by modified date and it works fine. It would better sorted by the matevalue, but it’s ok.The other issue: as i select more than one taxonomy or cat to filter with, screen over the posts and the filter gets grey and search&filter doesn’t do something anymore. Do have a solution for that?
Thank you 🙂Anonymous(Private) September 19, 2017 at 12:45 am #131777Solved!
I found out that the grey-problem appears when I replace<?php the_excerpt(); ?>
with<?php the_content(); ?>
I need the “<?php the_content(); ?>” function because there are shortcodes in the posts which i want to be executed and with the_excerpt that doesn’t work.The solution i found is to insert a function in the themes function.php that lets the shortcode execute in the_excerpt despite of all of that: `<?php
add_filter( ‘the_excerpt’, ‘shortcode_unautop’);
add_filter( ‘the_excerpt’, ‘do_shortcode’);
?>`
Thank you anyway! I hope my solution maybe helps some other users.But the problem with the sorting by meta_value persists. A value like “1986_02_064” is in every post as a value, and i want to sort by that. Is that possible? When i enable it in settings no posts are shown…
And also it doesn’t recognise the category it is in when i view a post with the search&filter sidebar.(values in form not updated, only when i click through it with s&f) -
AuthorPosts