• Hi there, I have asked this over at Thematic, but nobody seems to be available for help. I am a lousy programmer/scripter, but I excel at copy/paste code :-).

    What I want is to get rid of the postmeta and postfooter stuff on the home page, but leave it intact on single post pages. What I did was the below and it’s not working, and I can’t figure out why not:

    function no_thematic_postfooter() {
      if (is_single()) {
        global $id, $post;
    
        if ($post->post_type == 'page' && current_user_can('edit_posts')) { /* For logged-in "page" search results */
            $postfooter = '<div class="entry-utility">' . thematic_postfooter_posteditlink();
            $postfooter .= "</div><!-- .entry-utility -->\n";
        } elseif ($post->post_type == 'page') { /* For logged-out "page" search results */
            $postfooter = '';
        } else {
            if (is_single()) {
                $postfooter = '<div class="entry-utility">' . thematic_postfooter_postcategory() . thematic_postfooter_posttags() . thematic_postfooter_postconnect();
            } else {
                $postfooter = '<div class="entry-utility">' . thematic_postfooter_postcategory() . thematic_postfooter_posttags() . thematic_postfooter_postcomments();
            }
            $postfooter .= "</div><!-- .entry-utility -->\n";
        }
        // Put it on the screen
        echo apply_filters( 'thematic_postfooter', $postfooter ); // Filter to override default post footer
        }
        else {
        return ('');
        }
    }
    add_filter('thematic_postfooter', 'no_thematic_postfooter');
     // end thematic_postfooter
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Thematic theme: get rid of postmeta and postfooter on home page only’ is closed to new replies.