{"id":4528815,"date":"2014-01-21T21:07:13","date_gmt":"2014-01-21T21:07:13","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/display-custom-fields-in-a-certain-order\/"},"modified":"2016-08-21T15:00:57","modified_gmt":"2016-08-21T15:00:57","slug":"display-custom-fields-in-a-certain-order","status":"closed","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/display-custom-fields-in-a-certain-order\/","title":{"rendered":"Display custom fields in a certain order"},"content":{"rendered":"<p>Hi there.  I&#8217;ve been looking through this forum in search of a particular solution, but to no avail.  What I would like to do is have a embedded media field display on top of a multiple line textfield on the front-end of a post.  Code I&#8217;ve used to solve this problem is below.<\/p>\n<pre><code>echo types_render_field(&quot;youtube&quot;,  array(&#039;output&#039; =&gt; &#039;html&#039;));\necho types_render_field(&quot;text&quot;, array(&#039;output&#039; =&gt; &#039;html&#039;));<\/code><\/pre>\n<p>I&#8217;ve also tried a few different variations of a foreach loop, but again to no avail.  Has anyone managed to come up with a solution for something like this?  Thanks in advance.<\/p>\n<p>https:\/\/wordpress.org\/plugins\/types\/<\/p>\n","protected":false},"template":"","class_list":["post-4528815","topic","type-topic","status-closed","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/4528815","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\/4528815\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=4528815"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}