Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author Mike Jolley

    (@mikejolley)

    I’ve seen caching plugins cause this, and customisations to the job queries. I assume you mean the featured results are not at the top of the list? What do they appear to be ordered by?

    Thread Starter Griffiths1995

    (@griffiths1995)

    No caching plug ins installed. Nor have their been any customisations to the queries. Maybe because I imported the data directly. But it seems like I have everything ticked.

    Plugin Author Mike Jolley

    (@mikejolley)

    If you update the listing via the backend, does the sorting resolve itself?

    Thread Starter Griffiths1995

    (@griffiths1995)

    It doesn’t mate. My assumption is that it do the
    order_featured_job_listing function in WP-job-manager-functions.php.
    Any ideas mate?

    Plugin Author Mike Jolley

    (@mikejolley)

    Ok, what about the listings currently appearing *above* the one you want sticky? Save one – see if the order changes.

    Thread Starter Griffiths1995

    (@griffiths1995)

    No change again. If i set the featured attribute to true that works. So its clearly registering them as featured.

    Plugin Author Mike Jolley

    (@mikejolley)

    There looks to be nothing wrong in order_featured_job_listing. And I have confirmed locally that sorting is working.

    *how* did you import?

    If you want to do a tools > Export of your jobs for me I can look at the actual data.

    Thread Starter Griffiths1995

    (@griffiths1995)

    add_filter( ‘get_job_listings_query_args’, ‘custom_get_job_listings_query_args’ );

    function custom_get_job_listings_query_args( $args ) {

    $args[‘orderby’]=’menu_order ASC’;
    return $args;
    }

    -Stolen from your other post but does the trick. Thanks mate. Also leads me to believe that the function on line 175-180 wasnt working.

    Thread Starter Griffiths1995

    (@griffiths1995)

    I used WP All import pro. Then did some custom SQL in order to make certain listings featured depending on their rating value from another import of comments.

    Plugin Author Mike Jolley

    (@mikejolley)

    Not sure why this would happen. I will be looking at ordering again soon anyhow – WP 4.2 has some nice features to make this easier. (https://github.com/mikejolley/WP-Job-Manager/issues/452)

Viewing 10 replies - 1 through 10 (of 10 total)

The topic ‘Featured not sticking’ is closed to new replies.