Search rewrite rules
-
In order to make the pagination work on the FAQ search page replace the rule
add_rewrite_rule( $qaplus_options['faq_slug'] . '/search/?([^/]*)$','index.php?s=$matches[1]&post_type=qa_faqs','top');
in inc/shortcodes.php with the following rules:add_rewrite_rule( $qaplus_options['faq_slug'] . '/search/?([^/]*)/page/([0-9]+)?$','index.php?s=$matches[1]&post_type=qa_faqs&paged=$matches[2]','top');
add_rewrite_rule( $qaplus_options['faq_slug'] . '/search/?([^/]*)$','index.php?s=$matches[1]&post_type=qa_faqs','top');
Author should consider adding this modification in the next version.
Regards,
Costi
- The topic ‘Search rewrite rules’ is closed to new replies.