{"id":4921970,"date":"2014-05-16T13:00:40","date_gmt":"2014-05-16T13:00:40","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/problem-content-featured\/"},"modified":"2016-08-21T20:38:52","modified_gmt":"2016-08-21T20:38:52","slug":"problem-content-featured","status":"closed","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/problem-content-featured\/","title":{"rendered":"Problem content featured"},"content":{"rendered":"<p>Hi,<br \/>\ni use this code after post-title class to show category images next to the post title: <\/p>\n<p>&lt;?php<br \/>\nforeach((get_the_category()) as $category) {<br \/>\necho &#8216;&lt;img src=&#8221;&#8216;.get_bloginfo(&#8220;template_url&#8221;).&#8217;\/img\/icon\/&#8217; . $category-&gt;cat_name . &#8216;.png&#8221; alt=&#8221;&#8216; . $category-&gt;cat_name . &#8216;&#8221; \/&gt;&#8217;;<br \/>\n}<br \/>\n?&gt;<\/p>\n<p>it works in content.php but doesn&#8217;t works in content-featured.php<\/p>\n<p>How can i fix it?<\/p>\n<p>Thanks<\/p>\n","protected":false},"template":"","class_list":["post-4921970","topic","type-topic","status-closed","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/4921970","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\/4921970\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=4921970"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}