{"id":731682,"date":"2008-04-06T06:00:23","date_gmt":"2008-04-06T06:00:23","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/how-to-add-template-tags\/"},"modified":"2016-08-19T00:48:25","modified_gmt":"2016-08-19T00:48:25","slug":"how-to-add-template-tags","status":"closed","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/how-to-add-template-tags\/","title":{"rendered":"How to add template tags?"},"content":{"rendered":"<p>Hello all,<br \/>\nI&#8217;m trying to customize a theme by adding a carousel just like this one http:\/\/sorgalla.com\/projects\/jcarousel\/examples\/static_simple.html however with text below the thumbs.<\/p>\n<p>I was able to do it statically using html, but I have no idea how to populate the<br \/>\n<code>&lt;li&gt;<\/code> using php. My intention it is to call from one specific category a thumb and the title, perhaps an excerpt from the last 8 posts under that category.<br \/>\nHow can I change the code below, so I can add to my home.php and get the result as desired?<\/p>\n<pre><code>&lt;ul id=&quot;mycarousel&quot; class=&quot;skin-tango&quot;&gt;\n    &lt;\/li&gt;\n&lt;li&gt; &lt;a href=&quot;&quot;&gt;&lt;img src=&quot;&quot; alt=&quot;&quot; \/&gt;title or excerpt&lt;\/a&gt; &lt;\/li&gt;\n    ...8 posts<\/code><\/pre>\n<p>Than You in advance.<\/p>\n","protected":false},"template":"","class_list":["post-731682","topic","type-topic","status-closed","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/731682","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\/731682\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=731682"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}