kartikkumar
Forum Replies Created
-
Forum: Themes and Templates
In reply to: [Writr] Showing excerpts instead of full postsGreat, that worked! Thanks!
Only, now I realise that showing excepts means that the “Continue reading” button doesn’t appear. It’s more intuitive to me that a reader sees the button instead of having to click the title to see the pull post.
Is there a way that I can couple this change to auto-displaying a “more” button for all posts?
Thanks again!
Forum: Themes and Templates
In reply to: [Writr] Showing excerpts instead of full postsThanks for that. My original file looks somewhat different though than what you indicated. Nevertheless, I copy-pasted your suggestion and replaced the original content and unfortunately it doesn’t seem to have worked.
For the moment, I think I’ll just fall back to manually entering “more” breaks in my posts.
Thanks!
Forum: Themes and Templates
In reply to: [Writr] Showing excerpts instead of full postsThanks, I tried working with content.php first, but couldn’t get it to work. I spotted the
the_content()call in content-single.php so thought I might try that instead.Unfortunately though, it doesn’t seem to be working in content.php as described in that post.
This is the section of code that I thing is basically controlling the rendering:
<?php if ( is_search() ) : // Only display Excerpts for Search ?> <div class="entry-summary"> <?php the_excerpt(); ?> </div><!-- .entry-summary --> <?php else : ?> <div class="entry-content"> <?php the_content( __( 'Continue reading', 'writr' ) ); ?> <?php wp_link_pages( array( 'before' => '<div class="page-links">' . __( 'Pages:', 'writr' ), 'after' => '</div>', ) ); ?> </div><!-- .entry-content --> <?php endif; ?>Is it possible that I can edit the
the_content()call in theelsebranch otherwise? Since it takes arguments, I’m not sure if I can just replace the whole line<?php the_content( __( 'Continue reading', 'writr' ) ); ?>with a call tothe_excerpt().Thanks!