How to use apply_filters to customize posts display?
-
On line: 1288
$html_tags = apply_filters( 'nlposts_block_output', $html_tags );
Could anyone help me to use apply_filters to customize posts display using this html fragment:
<div class="cat-box-content"> <ul> <li class="first-news tie_audio"> <div class="post-thumbnail tie-appear"> <a href="https://mysite.com/" rel="bookmark"> <img width="310" height="165" src="https://mysite.com/b-310x165.jpg" class="attachment-tie-medium wp-post-image tie-appear" alt="7717834982_bbd7e12b8c_b"><span class="fa overlay-icon"></span></a> </div><!-- post-thumbnail /--> <h2 class="post-box-title"><a href="https://mysite.com/" rel="bookmark">Our Theme</a></h2> <p class="post-meta"> <span class="tie-date"><i class="fa fa-clock-o"></i>30/01/2015</span> <span class="post-comments"><i class="fa fa-comments"></i><a href="https://mysite.com/#comments">4</a></span> <span class="post-views"><i class="fa fa-eye"></i>517 </span> </p> <div class="entry"> <p>Don’t act so surprised, Your Highness...</p> <a class="more-link" href="https://mysite.com/">Read More ?</a> </div> </li><!-- .first-news --> <li class="other-news tie_video"> <div class="post-thumbnail tie-appear"> <a href="https://mysite.com/explained/" rel="bookmark"> <img width="110" height="75" src="https://mysite.com/110x75.jpg" class="attachment-tie-small wp-post-image tie-appear" alt="NmnKzKIyQsyGIkFjiNsb_20140717_212636-3"><span class="fa overlay-icon"></span></a> </div><!-- post-thumbnail /--> <h3 class="post-box-title"><a href="https://mysite.com/explained/" rel="bookmark">Top Search Engine Optimization</a></h3> <p class="post-meta"> <span class="tie-date"><i class="fa fa-clock-o"></i>26/01/2015</span> <span class="post-comments"><i class="fa fa-comments"></i><a href="https://mysite.com/explained/#respond">0</a></span> <span class="post-views"><i class="fa fa-eye"></i>282 </span> </p> </li> </ul> <div class="clear"></div> </div>
Thanks
- The topic ‘How to use apply_filters to customize posts display?’ is closed to new replies.