Tagged: ,

Viewing 19 posts - 1 through 19 (of 19 total)
  • Author
    Posts
  • #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 ?

    #1166038

    Hey berlinitaliancommunication,

    Best regards,
    Victoria

    #1166099

    Try 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

    #1166473
    This reply has been marked as private.
    #1166668

    Hi,

    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,
    Ismael

    #1166790

    Hi 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..

    #1167940
    This reply has been marked as private.
    #1168022

    Hi,

    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,
    Ismael

    #1168576

    TNX
    I ‘ve replicated also in productions and it works.

    tnx for support !!
    r

    #1168596

    Hi,

    Did you need additional help with this topic or shall we close?

    Best regards,
    Jordan Shannon

    #1168597

    Hi,

    Did you need additional help with this topic or shall we close?

    Best regards,
    Jordan Shannon

    #1168776

    hi 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 ?

    #1168778

    Just 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?

    #1169082

    Hi,
    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,
    Mike

    #1170211
    This reply has been marked as private.
    #1170213

    here ftp for the staging :)

    TNX!

    • This reply was modified 1 year, 5 months ago by  Mike. Reason: moved login to Private Content area
    #1170287

    Hi,
    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,
    Mike

    #1173314
    This reply has been marked as private.
    #1173771

    Hi,

    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

Viewing 19 posts - 1 through 19 (of 19 total)

You must be logged in to reply to this topic.