{"id":14065235,"date":"2021-02-17T19:59:14","date_gmt":"2021-02-17T19:59:14","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/executing-php-function-within-each-tags\/"},"modified":"2021-02-17T19:59:14","modified_gmt":"2021-02-17T19:59:14","slug":"executing-php-function-within-each-tags","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/executing-php-function-within-each-tags\/","title":{"rendered":"Executing PHP function within [each] tags"},"content":{"rendered":"<p>I have a function to navigate between custom post types. I want to have more the so for when I am listing mutliple items from the same field, I can have next and previous links for all people listed. For example, this is how it would theoretically look:<\/p>\n<p>[each author]<br \/>\n{@author_name}<br \/>\nNext by {@author_name} Previous by {@author_name}<br \/>\n[\/each]<\/p>\n<p>The function however has to have multiple fields passed to it.<\/p>\n","protected":false},"template":"","class_list":["post-14065235","topic","type-topic","status-publish","hentry","topic-tag-functions"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/14065235","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\/14065235\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=14065235"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}