Advertisement
urosevic

[WordPress] Posts-per-Cat Template in Theme Template File

Mar 23rd, 2015
267
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. $ppc_code = '[ppc]
  3. <div class="article">
  4. <div class="thumbnail"><a href="%link%">%thumbnail%</a></div>
  5. <div class="title"><a href="%link%">%title%</a></div>
  6. <div class="excerpt">%excerpt%</div>
  7. </div>
  8. [/ppc]';
  9.  
  10. echo do_shortcode( $ppc_code );
  11. ?>
Advertisement
RAW Paste Data Copied
Advertisement