/ Published in: PHP

This example is adding a feature box after the first post. You can apply it to any of the hooks inside the loop.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
function custom_feature_box($post_count = true) { if (($post_count == 1) && is_home()) thesis_feature_box_content(); } add_action('thesis_hook_after_post','custom_feature_box');
Comments
