Mark
asked 11 years ago

Forum Paging

You can marked this as answered, but I just wanted to let you know your paging isn’t working when looking up search result. Currently, the footer paging links are formatted as:

http://cmspioneer.com/designwall/?s=sidebarpage/2/

They should be:
http://cmspioneer.com/designwall/page/2/?s=sidebar

Thanks

2 Answers
DominicStaff
answered 11 years ago

Thank you for interesting in our product and your feedback. We appreciate it.

I sent and notified our technical team about this problem. We are checking and fixing.

Any your suggestion will make our product become better and better.

Jackie Lord
answered 11 years ago

Thanks for your report. Just a quick note that we are fixed this bug.

In addition, I want to share a small tip, so you can apply it on your WordPress website.

I realize that even when you use the pretty permalinks, WordPress does not still rewrite the search results URL. Then I try to type:

http://designwall.com/search/sidebar/page/2/

I get a search results page with actual results for the search term “sidebar”. So the function exists but the rewrite rule does not. I added the following code to theme functions:

add_action('template_redirect', 'dw_search_url_rewrite_rule');
function dw_search_url_rewrite_rule() {
    if ( is_search() && !empty($_GET['s'])) {
        wp_redirect( home_url("/search/") . urlencode(get_query_var('s')). '/' );
        exit();
    }   
}

And now, it worked well for me. Try this suggestion and let me know result.

Powered by DW Question & Answer Pro