• Hi,
    I am using 20-11 with showcase. I would like to display all posts full (or cut with the more tag), not just the top one. I googled some tweaks to get excerpt on the homepage, but that’s not what I want.

    Thanks!

Viewing 7 replies - 1 through 7 (of 7 total)
  • please create a child theme https://codex.www.ads-software.com/Child_Themes of Twenty Eleven first to work with – if you haven’t already.

    do not edit Twenty Eleven directly, as an unedited default theme is needed in case of problems.

    then copy content-featured.php into your child theme and edit the line with:

    <?php the_excerpt(); ?>

    change to:

    <?php the_content(); ?>

    Thread Starter wlaxo

    (@wlaxo)

    Thanks, but It didn’t do anything ?? Are you sure I should edit the featured post php? That one is ok (homepage shows the full post), I need to display the remaning recent posts as full posts (not just title)

    Yes I am using child theme

    without a link to your site, I can only guess:

    try to edit showcase.php:

    <li class="entry-title">
    							<a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'twentyeleven' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a>
    							<span class="comments-link">

    and add something like this before the line with <span class="comments-link">:

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

    (@wlaxo)

    Thanks, this brought some progress, the posts are displayed as full now, but the text is all bold (seems like the style of title and content mixed together) and more tag is ignored.

    The site is eurokriza.sk

    and more tag is ignored

    read https://codex.www.ads-software.com/Customizing_the_Read_More#How_to_use_Read_More_in_Pages

    please leave the edits active in the site so somebody can check what is not working;
    also post the full code of the edited template into https://pastebin.com/ and post the link to it here.

    Thread Starter wlaxo

    (@wlaxo)

    Thank you very much for help. The read more tag is working now. The style is still broken. I will leave the change for some hours, so anyone can have a look…

    Thread Starter wlaxo

    (@wlaxo)

    Solved thanks to Zeaks

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Twenty Eleven – how to show full posts’ is closed to new replies.