{"id":2564,"date":"2020-01-18T11:18:29","date_gmt":"2020-01-18T11:18:29","guid":{"rendered":"https:\/\/ibex.tech\/cloud\/?p=2564"},"modified":"2022-02-17T07:13:48","modified_gmt":"2022-02-17T07:13:48","slug":"using-shortcodes-inside-a-shortcode","status":"publish","type":"post","link":"https:\/\/ibex.tech\/cloud\/wordpress\/shortcodes\/using-shortcodes-inside-a-shortcode","title":{"rendered":"Using shortcodes inside a shortcode"},"content":{"rendered":"\n<p>Use the do_shortcode() function<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$HtmlOutput .= do_shortcode( '&#91;some_shortcode something=\"FC3\"]' );\n\n\/\/You can also use:\n  echo do_shortcode( '&#91;some_shortcode something=\"FC3\"]' );<\/code><\/pre>\n\n\n\n<p>Assigning the output of do_shortcode() to a string and returning from the function with it didn&#8217;t work in our test, but echo did<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Use the do_shortcode() function Assigning the output of do_shortcode() to a string and returning from the function with it didn&#8217;t work in our test, but echo did<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[166],"tags":[],"class_list":["post-2564","post","type-post","status-publish","format-standard","hentry","category-shortcodes"],"_links":{"self":[{"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/posts\/2564","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/comments?post=2564"}],"version-history":[{"count":2,"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/posts\/2564\/revisions"}],"predecessor-version":[{"id":2567,"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/posts\/2564\/revisions\/2567"}],"wp:attachment":[{"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/media?parent=2564"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/categories?post=2564"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/tags?post=2564"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}