{"id":3771915,"date":"2013-05-21T16:12:11","date_gmt":"2013-05-21T16:12:11","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/using-shortcode-in-title\/"},"modified":"2016-08-21T01:12:45","modified_gmt":"2016-08-21T01:12:45","slug":"using-shortcode-in-title","status":"closed","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/using-shortcode-in-title\/","title":{"rendered":"Using [shortcode] in title."},"content":{"rendered":"<p>So far I love this plugin but I use shortcodes in my title and access them with get_the_title() which has always worked. I have the title to shortcode enabled on my site. My problem is I cannot figure out where (if it is possible) to change the title output to do my shortcode. I tried this:<\/p>\n<p><code>$zg_get_title = get_the_title($value+0);<\/code><\/p>\n<p>and this:<\/p>\n<p><code>echo &quot;&lt;a href=\\&quot;&quot;. get_permalink($value+0) . &quot;\\&quot; title=\\&quot;&quot;. $zg_title_out-&gt;post_title . &quot;\\&quot;&gt;&quot;. get_the_title($value+0) . &quot;&lt;\/a&gt;\\n&quot;;<\/code><\/p>\n<p>but both give a sql error so I am missing something about the loop. I would love to see if this can be done.<\/p>\n<p>Thanks!<\/p>\n<p>https:\/\/wordpress.org\/extend\/plugins\/last-viewed-posts\/<\/p>\n","protected":false},"template":"","class_list":["post-3771915","topic","type-topic","status-closed","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/3771915","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\/3771915\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=3771915"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}