<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.1" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>THE MOLITOR FORUMS &#187; Topic: Add new tag button like Latest/Featured/Popular</title>
		<link>http://www.themolitor.com/forums/topic/add-new-tag-button-like-latestfeaturedpopular</link>
		<description>THE MOLITOR FORUMS &#187; Topic: Add new tag button like Latest/Featured/Popular</description>
		<language>en-US</language>
		<pubDate>Tue, 28 Apr 2026 12:59:55 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.1</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>http://www.themolitor.com/forums/search.php</link>
		</textInput>
		<atom:link href="http://www.themolitor.com/forums/rss/topic/add-new-tag-button-like-latestfeaturedpopular" rel="self" type="application/rss+xml" />

		<item>
			<title>THE MOLITOR on "Add new tag button like Latest/Featured/Popular"</title>
			<link>http://www.themolitor.com/forums/topic/add-new-tag-button-like-latestfeaturedpopular#post-25176</link>
			<pubDate>Mon, 02 Dec 2013 10:51:11 +0000</pubDate>
			<dc:creator>THE MOLITOR</dc:creator>
			<guid isPermaLink="false">25176@http://www.themolitor.com/forums/</guid>
			<description><pre><code>&#60;ul id=&#34;tabs&#34;&#62;
	&#60;li id=&#34;latestTab&#34; class=&#34;tab activeTab&#34;&#62;&#60;i class=&#34;icon-pencil&#34;&#62;&#60;/i&#62;&#60;span&#62;&#60;?php _e(&#039;Latest&#039;,&#039;themolitor&#039;);?&#62;&#60;/span&#62;&#60;/li&#62;
	&#60;li id=&#34;chapitresTab&#34; class=&#34;tab&#34;&#62;&#60;i class=&#34;icon-pencil&#34;&#62;&#60;/i&#62;&#60;span&#62;&#60;?php _e(&#039;Chapitre&#039;,&#039;themolitor&#039;);?&#62;&#60;/span&#62;&#60;/li&#62;
	&#60;?php if($featured){?&#62;&#60;li id=&#34;featuredTab&#34; class=&#34;tab&#34;&#62;&#60;i class=&#34;icon-star&#34;&#62;&#60;/i&#62;&#60;span&#62;&#60;?php _e(&#039;Featured&#039;,&#039;themolitor&#039;);?&#62;&#60;/span&#62;&#60;/li&#62;&#60;?php } ?&#62;
	&#60;?php if($results){?&#62;&#60;li id=&#34;popularTab&#34; class=&#34;tab&#34;&#62;&#60;i class=&#34;icon-heart&#34;&#62;&#60;/i&#62;&#60;span&#62;&#60;?php _e(&#039;Popular&#039;,&#039;themolitor&#039;);?&#62;&#60;/span&#62;&#60;/li&#62;&#60;?php } ?&#62;
&#60;/ul&#62;&#60;!--end tabs--&#62;</code></pre></description>
		</item>
		<item>
			<title>troadeca on "Add new tag button like Latest/Featured/Popular"</title>
			<link>http://www.themolitor.com/forums/topic/add-new-tag-button-like-latestfeaturedpopular#post-25138</link>
			<pubDate>Thu, 28 Nov 2013 08:25:28 +0000</pubDate>
			<dc:creator>troadeca</dc:creator>
			<guid isPermaLink="false">25138@http://www.themolitor.com/forums/</guid>
			<description><p>Another try</p>
<p>&#60;ul id="tabs"&#62;<br />
		&#60;li id="latestTab" class="tab activeTab"&#62;&#60;i class="icon-pencil"&#62;&#60;/i&#62;<br />
&#60;span&#62;&#60;?php _e('Latest','themolitor');?&#62;&#60;/span&#62;<br />
		&#60;li id=“chapitresTab" class="tab activeTab"&#62;&#60;i class="icon-pencil"&#62;&#60;/i&#62;<br />
&#60;span&#62;&#60;?php _e(‘Chapitre’,’themolitor');?&#62;&#60;/span&#62;<br />
		&#60;?php if($featured){?&#62;&#60;li id="featuredTab" class="tab"&#62;&#60;i class="icon-star"&#62;&#60;/i&#62;<br />
&#60;span&#62;&#60;?php _e('Featured','themolitor');?&#62;&#60;/span&#62;&#60;?php } ?&#62;<br />
		&#60;?php if($results){?&#62;&#60;li id="popularTab" class="tab"&#62;&#60;i class="icon-heart"&#62;&#60;/i&#62;<br />
&#60;span&#62;&#60;?php _e('Popular','themolitor');?&#62;&#60;/span&#62;&#60;?php } ?&#62;</p>
<p>&#60;!--end tabs--&#62;
</p></description>
		</item>
		<item>
			<title>troadeca on "Add new tag button like Latest/Featured/Popular"</title>
			<link>http://www.themolitor.com/forums/topic/add-new-tag-button-like-latestfeaturedpopular#post-25137</link>
			<pubDate>Thu, 28 Nov 2013 08:22:06 +0000</pubDate>
			<dc:creator>troadeca</dc:creator>
			<guid isPermaLink="false">25137@http://www.themolitor.com/forums/</guid>
			<description><p>Hi,</p>
<p>I should have make mistakes on the Copy/paste operation. There are 2 closing li at the end of the 2 first lines (I just copy paste the "latest" line and changed it into a "chapitres" line. There is also a closing ul at the end of the tabs section.<br />
It's still not working. I'm sorry, I'm pretty bad in PHP coding.<br />
Here is the code (I hope the copy paste will work this time).</p>
<p>&#60;ul id="tabs"&#62;<br />
		&#60;li id="latestTab" class="tab activeTab"&#62;&#60;i class="icon-pencil"&#62;&#60;/i&#62;&#60;span&#62;&#60;?php _e('Latest','themolitor');?&#62;&#60;/span&#62;<br />
		&#60;li id=“chapitresTab" class="tab activeTab"&#62;&#60;i class="icon-pencil"&#62;&#60;/i&#62;&#60;span&#62;&#60;?php _e(‘Chapitre’,’themolitor');?&#62;&#60;/span&#62;<br />
		&#60;?php if($featured){?&#62;&#60;li id="featuredTab" class="tab"&#62;&#60;i class="icon-star"&#62;&#60;/i&#62;&#60;span&#62;&#60;?php _e('Featured','themolitor');?&#62;&#60;/span&#62;&#60;?php } ?&#62;<br />
		&#60;?php if($results){?&#62;&#60;li id="popularTab" class="tab"&#62;&#60;i class="icon-heart"&#62;&#60;/i&#62;&#60;span&#62;&#60;?php _e('Popular','themolitor');?&#62;&#60;/span&#62;&#60;?php } ?&#62;<br />
	&#60;!--end tabs--&#62;</p>
<p>	///////////////////<br />
	//CHAPITRES POSTS<br />
	//////////////////<br />
	echo '&#60;div id=“chapitresTabContent" class="tabContent"&#62;';<br />
	$showPostsInCategory = null;<br />
	$showPostsInCategory = new WP_Query();<br />
	$showPostsInCategory-&#62;query('cat=4’);<br />
	if ($showPostsInCategory-&#62;have_posts()) : while ($showPostsInCategory-&#62;have_posts()) : $showPostsInCategory-&#62;the_post();<br />
	get_template_part('post');<br />
	endwhile; endif;<br />
	$showPostsInCategory = null;<br />
	wp_reset_postdata();<br />
	echo '&#60;/div&#62;&#60;!--end chapitresTabContent--&#62;';
</p></description>
		</item>
		<item>
			<title>THE MOLITOR on "Add new tag button like Latest/Featured/Popular"</title>
			<link>http://www.themolitor.com/forums/topic/add-new-tag-button-like-latestfeaturedpopular#post-25115</link>
			<pubDate>Wed, 27 Nov 2013 13:06:11 +0000</pubDate>
			<dc:creator>THE MOLITOR</dc:creator>
			<guid isPermaLink="false">25115@http://www.themolitor.com/forums/</guid>
			<description><p>Hi there,</p>
<p>There are errors in your ul (tabs) section. You omitted a closing ul tag and have li items closing with span tags. They should be closing li tags instead.</p>
<p>Best,</p>
<p>Chris
</p></description>
		</item>
		<item>
			<title>troadeca on "Add new tag button like Latest/Featured/Popular"</title>
			<link>http://www.themolitor.com/forums/topic/add-new-tag-button-like-latestfeaturedpopular#post-25112</link>
			<pubDate>Wed, 27 Nov 2013 12:45:14 +0000</pubDate>
			<dc:creator>troadeca</dc:creator>
			<guid isPermaLink="false">25112@http://www.themolitor.com/forums/</guid>
			<description><p>Thanks for this very quick answer.<br />
Seems like there is an error, the page doesn't load with the modified index.php</p>
<p>Here are the sections I changed :<br />
<pre><code>&#60;ul id=&#34;tabs&#34;&#62;
	&#60;li id=&#34;latestTab&#34; class=&#34;tab activeTab&#34;&#62;&#60;i class=&#34;icon-pencil&#34;&#62;&#60;/i&#62;&#60;span&#62;&#60;?php _e(&#039;Latest&#039;,&#039;themolitor&#039;);?&#62;&#60;/span&#62;
	&#60;li id=“chapitresTab&#34; class=&#34;tab activeTab&#34;&#62;&#60;i class=&#34;icon-pencil&#34;&#62;&#60;/i&#62;&#60;span&#62;&#60;?php _e(‘Chapitre’,’themolitor&#039;);?&#62;&#60;/span&#62;
	&#60;?php if($featured){?&#62;&#60;li id=&#34;featuredTab&#34; class=&#34;tab&#34;&#62;&#60;i class=&#34;icon-star&#34;&#62;&#60;/i&#62;&#60;span&#62;&#60;?php _e(&#039;Featured&#039;,&#039;themolitor&#039;);?&#62;&#60;/span&#62;&#60;?php } ?&#62;
	&#60;?php if($results){?&#62;&#60;li id=&#34;popularTab&#34; class=&#34;tab&#34;&#62;&#60;i class=&#34;icon-heart&#34;&#62;&#60;/i&#62;&#60;span&#62;&#60;?php _e(&#039;Popular&#039;,&#039;themolitor&#039;);?&#62;&#60;/span&#62;&#60;?php } ?&#62;
&#60;!--end tabs--&#62;

///////////////////
//CHAPITRES POSTS
//////////////////
echo &#039;&#60;div id=“chapitresTabContent&#34; class=&#34;tabContent&#34;&#62;&#039;;
$showPostsInCategory = null;
$showPostsInCategory = new WP_Query();
$showPostsInCategory-&#62;query(&#039;cat=4&#039;);
if ($showPostsInCategory-&#62;have_posts()) : while ($showPostsInCategory-&#62;have_posts()) : $showPostsInCategory-&#62;the_post();
get_template_part(&#039;post&#039;);
endwhile; endif;
$showPostsInCategory = null;
wp_reset_postdata();
echo &#039;&#60;/div&#62;&#60;!--end chapitresTabContent--&#62;&#039;;</code></pre>
<p>Do you have any clue?
</p></description>
		</item>
		<item>
			<title>THE MOLITOR on "Add new tag button like Latest/Featured/Popular"</title>
			<link>http://www.themolitor.com/forums/topic/add-new-tag-button-like-latestfeaturedpopular#post-25107</link>
			<pubDate>Wed, 27 Nov 2013 11:27:05 +0000</pubDate>
			<dc:creator>THE MOLITOR</dc:creator>
			<guid isPermaLink="false">25107@http://www.themolitor.com/forums/</guid>
			<description><p>Hi there,</p>
<p>Open up index.php. Notice the TABS list items on lines 25-29 and the LATEST POSTS section on lines 32-44. You'll need to add another tab li item and copy/paste the LATEST POSTS SECTION. Be sure to change the ID for the new items so they match each other (example: customTab and customTabContent). You'll also want to change the following line fom the new content you copy/pasted...</p>
<pre><code>$showPostsInCategory-&#62;query(&#039;cat=&#039;. $latest);</code></pre>
<p>...to the id of the category ID you want to use. Example for category 3...</p>
<pre><code>$showPostsInCategory-&#62;query(&#039;cat=3&#039;);</code></pre>
<p>Let me know if that helps.</p>
<p>Best,</p>
<p>Chris
</p></description>
		</item>
		<item>
			<title>troadeca on "Add new tag button like Latest/Featured/Popular"</title>
			<link>http://www.themolitor.com/forums/topic/add-new-tag-button-like-latestfeaturedpopular#post-25105</link>
			<pubDate>Wed, 27 Nov 2013 10:58:25 +0000</pubDate>
			<dc:creator>troadeca</dc:creator>
			<guid isPermaLink="false">25105@http://www.themolitor.com/forums/</guid>
			<description><p>Hi,</p>
<p>I'd like to know if it is possible to add some button like the "Latest" one, to display only selected categories (not using the left column).</p>
<p>Thanks.</p>
<p>Antoine.
</p></description>
		</item>

	</channel>
</rss>
