Displaying multiple relationship/file field sorting on the website

[ad_1]

Dear Pods developers and community,

I have Custom Post Type with meta storage called “ubytovani” [accomodation] and “ubytovani-rooms” with table-based storage. In the former I have a relationship field of the latter, that I want to display in the order that is set in the admin UI by dragging.

I didn’t find a working way to do this. Don’t event know if it’s possible, but otherwise I would have to do a workaround using menu_order – adding order field for each item – which is really cumberstone when having a lot of items.

This is how I am querying the pods, using WP_Query, but tried multiple ways, including using pods built-in find() interface. Thank you!

$query = new WP_Query( array(
  "post_type" => "ubytovani-rooms",
  //"orderby" => "menu_order",
  "meta_query" => array(
    array(
      "key" => "ubytovani",
      "value" => $ID
    )
  )
) );

The page I need help with: [log in to see the link]

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer