Digital experiences for all disciplines
Forum Replies Created
-
Posted in: We hit Power Elite.
-
Hi,
I find a way to correct the issue myself.
For anyone who wants to put his hands in the code:First, we need to correct the offset issue in the Flexform theme code. In
wp-content/flexform/includes/page-builder/composer/lib/shortcodes/blog.php
, before the line 118 ($blog_args = array(
), put this new line :
$offset = ($paged-1)*$item_count;
This will offset the posts to the right ones.After that, we need to correct an issue in WordPress 4.4.1 (probably gonna be fixed in 4.4.2) in the canonical URLs. Follow this links to understand and fix the issue :
Explaination: https://core.trac.wordpress.org/ticket/35344#comment:6
Correction: https://core.trac.wordpress.org/attachment/ticket/35344/35344.2.diffEnjoy!
Still not fixed on my side :S
Thanks
This reply has been marked as private.Thank you for your answer, but it doesn’t work on my website.
If I comment the line 124:
'offset' => $offset
it doesn’t change anything.I looked at the code and I noticed this :
$paged = get_query_var('paged');
returnsint(0)
, that’s normal because we are on a template page
$paged = get_query_var('page');
returnsstring(0)
, that’s not normal…Then, the URL
mywebsite.com/page/2
still redirect me tomywebsite.com
, BUT if I usemywebsite.com?page=2
, everything works fine.I got the same issue. If you don’t want to install POEdit, download the file, etc. Just install LocoTranslate plugin, select the FR_fr.po file, and Save it again. It will regenerate the .MO file. Don’t forget to clear the cache if you have a cache plugin.
Hello, I have the same issue.
Is it possible to know what to correct ? I can do it myself and I think it could help the next ones… And is there a fix coming in the next update ? Soon ?Thank you !
-
Posted in: We hit Power Elite.