• Hi,

    I’m using APTO (paid version) to create a manual custom order for Posts of different CPTs, which are displayed in CPTs and Taxonomies Archives using the main query.

    The Posts grid is filtered in frontend using WP Gridbuilder facets, including a pagination facet.

    APTO custom order is reflected in frontend alright on page load BUT is lost after filtering the Posts grid, pagination for instance, probably because of WPGB filtering using Ajax.

    To be noted: APTO’s order is restored after reloading the page in the browser.

    I tried to force?$query->set( 'orderby', 'menu_order' );? in a?pre_get_posts?action for main query, it makes no difference.

    Any hints are welcome.

    Note: I’ve contacted the plugin support on their site given i’m using the paid version, but i guess the issue would be the same with the free version.

  • The topic ‘Posts order is lost after Ajax query’ is closed to new replies.