• Site: https://bit.ly/fa3ZDF
    Brief: I am creating this theme using the THESIS framework and I used the the code below to display the Post Metas (permalink, comments and trackbacks below the post). The problem is I only want the metas to show on the inside of the post when you click the Title, NOT on the Blog page with the featured post and teasers.

    Any advice?

    ————

    //POST METAS
    add_action('thesis_hook_after_post_box', 'post_metas');
    
    function post_metas() {
    	?>
        <div id="postmetas">Posted by <?php the_author(); ?> | <a href="<?php the_permalink() ?>">Permalink</a> | <?php comments_popup_link('Comments (0)', 'Comment (1)', 'Comments (%)'); ?> | Trackbacks <strong>(<?php trackback_count(); ?>)</strong> |<span class='st_sharethis' st_title='{title}' st_url='{url}' displayText='ShareThis'></span></div>
        <?php
    }
    //Trackback Count
    function trackback_count() {
    global $wpdb;
    $count = "SELECT COUNT(*) FROM $wpdb->comments WHERE comment_type = 'pingback' OR comment_type = 'trackback'";
    echo $wpdb->get_var($count);
    }
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Help Removing "Post Footer" from Blog Page in THESIS Theme’ is closed to new replies.