Order not working on the front-end

Support MB Relationships Order not working on the front-end

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #35864
    Cristian D.Cristian D.
    Participant

    Hi there,
    I'm using reciprocal relationship to connect 2 different post type like this:

    FROM (MEMBER TEAM)
    TO (PRACTICE AREA)

    and is working pretty well but I would like to sort each member inside of the practice, I deactivate the reciprocal relationship and is showing up a panel to sort each member there but is not reflected on the front-end

    I'm using this code:

    $connected = new WP_Query( [
    'post_type' => 'team',
    'relationship' => [
    'id' => 'area-responsible',
    'to' => get_the_ID(), // You can pass object ID or full object
    ],
    'nopaging' => true,
    ] );

    How can I fix it?
    Thank you

    #35875
    Long NguyenLong Nguyen
    Moderator

    Hi,

    Can you please share some screenshots of the order of teams in the backend and on the frontend?

    #35879
    Cristian D.Cristian D.
    Participant

    Sure,

    Backend
    https://www.dropbox.com/s/woiasg14y5q9zd0/Captura%20de%20Pantalla%202022-05-04%20a%20la%28s%29%2010.42.07.png?dl=0

    Front-end
    https://www.dropbox.com/s/fs0q3zultjq9osc/Captura%20de%20Pantalla%202022-05-04%20a%20la%28s%29%2010.43.13.png?dl=0

    I think on the front-end is sorting by title and not by the admin order.

    Can you help me please?
    Thank you

    #35893
    Long NguyenLong Nguyen
    Moderator

    Hi,

    The posts on the frontend are sorted by the order on the backend. Please try to deactivate all plugins except Meta Box, MB extensions, and switch to the standard theme of WordPress (Twenty TwentyTwo) then re-check this issue.

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.