{"id":17063526,"date":"2023-09-19T17:48:30","date_gmt":"2023-09-19T17:48:30","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/custom-ordering-3\/"},"modified":"2023-09-19T17:48:30","modified_gmt":"2023-09-19T17:48:30","slug":"custom-ordering-3","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/custom-ordering-3\/","title":{"rendered":"Custom ordering"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">I&#8217;m using the plugin to load custom related posts into my existing theme layout. The setup is pretty simple:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$custom_relations = CustomRelatedPosts::get()-&gt;relations_to($current_post_id);\n\t\t\n$custom_relation_ids = array_keys($custom_relations);<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">What I wanted to ask: is there any way to adjust this logic so it contains the ordering matches the custom ordering from the post page where the links are created? <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Much appreciate the help and great plugin!<\/p>\n","protected":false},"template":"","class_list":["post-17063526","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/17063526","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/17063526\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=17063526"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}