• Hi All,

    I’m using twenty ten 1.2 . I’m trying to set up the main post page to only show date, title, author, and category.

    So I’m eliminating the post summary and the link to leave_comment/comment off.

    I’m in the loop.php and I’m assuming I need to remove the_content, but that seems not to be working. Should I be doing something different?

    Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • there are a few ‘the_content’ in loop.php of twenty ten;

    the relavant is the one near the end of the template.

    can you paste your edited loop.php into a https://pastebin.com/ and post the link to it here?
    so someone can have a look at it and pint you to the right lines to edit.

    a link to your site might help to illustrate what you have achieved so far.

    Thread Starter Beyondus

    (@beyondus)

    Hey Alchymyth,

    First, thanks for introducing me to a really cool new site!! I haven’t done much to it yet because have deleted but then when it didn’t work I reverted it back. Here is the link:https://pastebin.com/3cDfZiDP

    change this section (after line 142) with a conditional statement, using is_home():

    <?php if( !is_home() ) { ?><div class="entry-content">
                                    <?php the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'twentyten' ) ); ?>
                                    <?php wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Pages:', 'twentyten' ), 'after' => '</div>' ) ); ?>
                            </div><!-- .entry-content --><?php } ?>

    https://codex.www.ads-software.com/Conditional_Tags

    the same with line 164:

    <?php if( !is_home() ) { ?><span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'twentyten' ), __( '1 Comment', 'twentyten' ), __( '% Comments', 'twentyten' ) ); ?></span><?php } ?>

    this way, you would have the info in the archives, for instance.
    if you don’t want any post content and comments links in the archives as well, you might as well simply delete the above sections.

    make a backup copy before editing.

    be aware that twenty ten will be overwritten with the next upgrade of your wordpress version – consider a child theme https://codex.www.ads-software.com/Child_Themes.

    Thread Starter Beyondus

    (@beyondus)

    Thanks alchymyth! You have pointed me in the right direction and I was able to complete it exactly how the client asked for it. Plus, you gave me some additional resources.

    Here is a link of the result, still tweaking though: https://www.e3communications.com/about-us/news/

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Removing Post summary on the main post page’ is closed to new replies.