-
AuthorPosts
-
December 12, 2019 at 5:55 pm #1165261
Hi there,
we face a strange issue.
If i choose the GRID LAYOUT for Layout Blog , the posts showed (in category pages ) are always the same.Have a look here:
this
https://staging1.berlinocacioepepemagazine.com/category/vivere-in-germania/offerte-di-lavoro-a-berlino-e-in-germania/
or https://staging1.berlinocacioepepemagazine.com/category/news-ed-eventi/eventi/ or any category shows the same post.Is not a permalink problem ’cause it happen only with Layout Grid.
Could you help me please ?
December 15, 2019 at 12:58 pm #1166038Hey berlinitaliancommunication,
Best regards,
VictoriaDecember 15, 2019 at 4:52 pm #1166099Try to reload there is a htacces password and you can get in. It works
Just reload and fill the use and pwd
Btw
You can see the problem also in production at berlinomagazine.com browsing the categories all the posts are the same.Tnx for support
December 16, 2019 at 4:15 pm #1166473This reply has been marked as private.December 17, 2019 at 4:46 am #1166668Hi,
Sorry for the delay. Are there any posts belonging to “offerte-di-lavoro-a-berlino-e-in-germania” category? Did you add any filters or modifications in the functions.php file to alter the posts query? Please post the login details in the private field so that we can access the dashboard. We would like to check the settings.
Best regards,
IsmaelDecember 17, 2019 at 12:20 pm #1166790Hi ismael tnx for support,
sure no it’s so strange ’cause it works with all the layout but not with the grid
so for the staging wp credential:no function or altered queries:
the only function right now is
<?php/*
* Add your own functions here. You can also copy some of the theme functions into this file.
* WordPress will use those functions instead of the original functions then.
*/
//set builder mode to debug
add_action(‘avia_builder_mode’, “builder_set_debug”);
function builder_set_debug()
{
return “debug”;
}but it seems not the reason of the issue!
I really really appreciate your effort..
December 19, 2019 at 9:25 pm #1167940This reply has been marked as private.December 20, 2019 at 4:34 am #1168022Hi,
Sorry for the delay. We are still not sure why all posts are displaying in the category pages. We had to add this filter in the functions.php file to adjust the category archive query manually.
add_filter('avf_post_slider_args', function($atts, $context){ global $posts; if($context == 'archive') { $object = get_queried_object(); $atts['custom_query'] = array( 'post_type'=>get_post_types(), 'cat'=>$object->term_id ); } return $atts; }, 10, 2);
The relevant posts are now displaying properly in the category pages.
Best regards,
IsmaelDecember 22, 2019 at 5:20 pm #1168576TNX
I ‘ve replicated also in productions and it works.tnx for support !!
rDecember 22, 2019 at 7:25 pm #1168596Hi,
Did you need additional help with this topic or shall we close?
Best regards,
Jordan ShannonDecember 22, 2019 at 7:25 pm #1168597Hi,
Did you need additional help with this topic or shall we close?
Best regards,
Jordan ShannonDecember 23, 2019 at 5:19 pm #1168776hi yes sorry i was waiting for feedback from the guys of the magazine.
It seems that the hotfix worked for the first page but the pagination then ( page 2, pgage 3 ) shows always the same
posts of first page.
Could you check ?December 23, 2019 at 5:21 pm #1168778Just some links
this is production but staging is the same:
https://berlinomagazine.com/category/cosa-vedere/musei/
then pagination..
https://berlinomagazine.com/category/cosa-vedere/musei/page/5/you can notice it shows the same posts.
any idea?
December 30, 2019 at 12:37 pm #1169082Hi,
Sorry for the late reply, please try updating WordPress and include ftp access to your staging site so we can try installing the latest Enfold beta to see if this corrects your category pagination.Best regards,
MikeJanuary 4, 2020 at 10:35 am #1170211This reply has been marked as private.January 4, 2020 at 10:55 am #1170213here ftp for the staging :)
TNX!
- This reply was modified 4 years, 11 months ago by Mike. Reason: moved login to Private Content area
January 4, 2020 at 3:10 pm #1170287Hi,
Thanks for the ftp access, but I was having some trouble uploading, I believe it’s because of my VPN.
Please see Private Content area.Best regards,
MikeJanuary 14, 2020 at 1:36 pm #1173314This reply has been marked as private.January 15, 2020 at 3:57 am #1173771Hi,
Thank you for the update.
We updated the filter in the functions.php file a bit to fix the pagination issue. It is working properly now.
add_filter('avf_post_slider_args', function($atts, $context){ global $posts; $paged = get_query_var( 'paged' ) ? get_query_var( 'paged' ) : 1; if($context == 'archive') { $object = get_queried_object(); $atts['custom_query'] = array( 'post_type' => get_post_types(), 'cat' => $object->term_id, 'paged' => $paged, ); } return $atts; }, 10, 2);
Best regards,
Ismael -
AuthorPosts
- You must be logged in to reply to this topic.