Forums › Forums › Search & Filter Pro › Pagination problem in Polylang Arabian language
Tagged: pagination, polylang, Template
- This topic has 23 replies, 3 voices, and was last updated 6 years, 2 months ago by Anonymous.
-
Anonymous(Private) August 22, 2018 at 10:30 am #186164
Hi I’m using this plugin with polylang.
I’ve made an override template to show results in each language.
For that I’ve copied this code for pagination:`<div class=”pagination”>
<div class=”nav-previous”><?php next_posts_link( ‘Older posts’, $query->max_num_pages ); ?></div>
<div class=”nav-next”><?php previous_posts_link( ‘Newer posts’ ); ?></div>
<?php
/* example code for using the wp_pagenavi plugin */
if (function_exists(‘wp_pagenavi’))
{
echo “<br />”;
wp_pagenavi( array( ‘query’ => $query ) );
}
?>
</div>`
It works in Spanish and English
https://goo.gl/UFUBuF
https://goo.gl/e8CeBQBut I don´t know in Arabian links to Spanish results
https://www.eloyortega.com/pruebas/bempresas/ar/buscador-arabe/Can you help me, please?
Thank you
Anonymous(Private) August 22, 2018 at 12:48 pm #186187I think so, if is not polylang wouldn´t show them in that page.
I´ve seen that it works if we add manually “?sf_paged=2”
https://goo.gl/EjGQ9HAnonymous(Private) August 22, 2018 at 5:22 pm #186230Yes, I just uploaded, renaming the older plugin folder, it but still links to Spanish page:
https://goo.gl/aJAxaeTrevor(Private) August 23, 2018 at 6:12 am #186249Just renaming the folder would likely cause issues (unless you deactivated it first?). Moving the old folder UP one level (into the wp-content parent folder) is safer.
Other than with Search & Filter, does the Arabic translation for other pages in your site work fine?
If you deactivate Search & Filter and do a standard WordPress search in the Arabic version of the site, are the results there in Arabic?
Anonymous(Private) August 23, 2018 at 10:12 am #186275Well I’ve deleted from server the old folder.
Then I deactivated & activated plugin, no changes.
Search & Filter works fine in Spanish and English version, haven’t tried in other languages:
https://goo.gl/UFUBuF
https://goo.gl/e8CeBQAnonymous(Private) August 23, 2018 at 10:53 am #186278I have made another page template with a loop for the custom post type, and here the pagination works in Arabic:
https://goo.gl/fcz9AR -
AuthorPosts