2015-10-16, 01:46:41
Hi Carlos,
I have a question. I was able to get the tabs working to switch out the news posts (by tag). Is there a way to just show a certain number of them. I know I'm not using the regular code to show the news page.
Here is what i have. Basically is 3 buttons to filter out the posts by tag. I'm using a bit of JS to show and hide them. At the moment tags like 'Sales' shows all of the post by that tag. Can I limit the number what gets shown or since I'm using a custom snippet here it may not work?
I have a question. I was able to get the tabs working to switch out the news posts (by tag). Is there a way to just show a certain number of them. I know I'm not using the regular code to show the news page.
Here is what i have. Basically is 3 buttons to filter out the posts by tag. I'm using a bit of JS to show and hide them. At the moment tags like 'Sales' shows all of the post by that tag. Can I limit the number what gets shown or since I'm using a custom snippet here it may not work?
PHP Code:
<ul class="links">
<li class=""><a class="sales-btn link" href="#">Sales</a></li>
<li class=""><a class="marketing-btn link" href="#">Marketing</a></li>
<li class=""><a class="public-r-btn link" href="#">Public Relations</a></li>
</ul>
<?php
if (nm_is_home()) {
echo '<div class="section pr">';
echo '<h2>Public Relations Insights</h2>';
nm_show_tag('public-relations');
echo '</div>';
echo '<div class="section m">';
echo '<h2>Marketing Insights</h2>';
nm_show_tag('marketing');
echo '</div>';
echo '<div class="section s">';
echo '<h2>Sales Insights</h2>';
nm_show_tag('sales');
echo '</div>';
} else {
get_page_content();
} ?>