Return to Snippet

Revision: 12852
at March 30, 2009 20:43 by kristarella


Initial Code
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');

Initial URL


Initial Description
This example is adding a feature box after the first post. You can apply it to any of the hooks inside the loop.

Initial Title
Target specific post on home page

Initial Tags
wordpress

Initial Language
PHP