Relationship Between Playlists and Songs

Support MB Relationships Relationship Between Playlists and Songs

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #48233
    Jacob HillJacob Hill
    Participant

    Hello,

    I have a relationship between two CPTs: "Playlists" and "Songs". When editing a playlist on the backend, I could change the order of the connected songs by drag and drop. This works fine, and the order of the songs is reflected on the frontend.

    Is there a way I could change the order of the connected songs by drag and drop from the frontend as well? I'm using a Bricks template with a query loop and selected the query type "MB Relationship: Playlists to Songs" to display the songs connected to a particular playlist. I also enabled the "Re-Order Posts" option when I registered the Song CPT. Can you please advise?

    Thanks!

    Jacob

    #48245
    PeterPeter
    Moderator

    Hello Jacob,

    Thanks for reaching out.

    I'm afraid that there isn't an option to re-order the posts or connected posts in the frontend. These features are available in the backend (admin area) only.

    #48246
    Jacob HillJacob Hill
    Participant

    Hi Peter, thank you for letting me know! Is there a REST API endpoint that we can use to accomplish this?

    #48250
    PeterPeter
    Moderator

    The extension MB Relationships supports managing the connection via Rest API, please check this feature here https://docs.metabox.io/extensions/mb-relationships/#rest-api

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