Custom Fields
Re-Envisioned
Support MB Relationships Add new relationship order

  • Creator
    Topic
  • #26912

    Hi,

    if I add a relationship to post B on the edit-page of post A using the metabox interface, the new item A in the related posts list of B is always first. (Order 0). Is it possible to apply a filter (or something else) to somehow make this last (order 999) instead?

    Thanx!

    AJ

Viewing 5 replies - 1 through 5 (of 5 total)
  • Author
    Replies
  • #26916
    Long Nguyen
    Moderator

    Hi AJ,

    Do you mean when querying to show the post on the frontend? On the backend, what connection creates first will show first and vice versa.

    The extension also supports re-ordering the connections by drag and drop items.

    #26917

    Hi,

    Thanx. I was hoping for a filter to make the new item always last.

    This line in storage.php makes it always first:
    order = isset( $orders[ $id ] ) ? $orders[ $id ] : 0;

    (If I change the 0 to 99 it does exactly what I need, but I was hoping to be able to do that using a filter/action)

    Best,

    AJ

    #26930
    Long Nguyen
    Moderator

    Hi,

    Thanks for your suggestion.

    I will inform the development team to check on this case and get back to you later.

    #26980

    Perfect, thanx! I hope they find a way to insert some kind of filter.

    #28660

    Hi,

    did your team manage to have a look at this?

    Thanx!

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