Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author ThemeHigh

    (@themehigh)

    Your issue needs a detailed check. Can you please raise a ticket through our website? We hope our technical team will be able to help you.

    Thank you!

    Plugin Author ThemeHigh

    (@themehigh)

    We hope your issue is resolved by adding the below code snippet in your child theme’s functions.php file.

    function custom_modify_main_query( $query ) {
        if ( $query->get( 'post_type' ) === 'thjm_jobs' && $query->is_paged()) {
            if(current_user_can( 'administrator' )){
                $status = array('publish', 'private');
                $query->set( 'post_status', $status );
            }else{
                $query->set( 'post_status', 'publish' );
            }
        }
    }
    add_action( 'pre_get_posts', 'custom_modify_main_query' );

    Thank you!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Load More Doesn’t work’ is closed to new replies.