Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 210725

Where do I find the loop with

$
0
0

Replies: 1

To add a Read More…link directly into a post Excerpt, wordpress codex documentation says this:
How to add a link beneath an excerpt to the full post
When using the excerpt feature WordPress does not automatically provide a link to a page containing the full post. To generate a link include the following code in the loop directly below <?php the_excerpt();

a href=”<?php echo get_permalink(); ?>”> Read More…</a

Or put the following in your theme’s functions.php.

function new_excerpt_more( $more ) {
return ‘ ‘ . __(‘Read More’, ‘your-text-domain’) . ‘‘;
}
add_filter( ‘excerpt_more’, ‘new_excerpt_more’ );

I’m having trouble finding this “loop” where I can insert the <?php the_excerpt(); ?> command. I’ve opened both my index.php file and my functions.php file in Appearance>Editor – both are hundreds of lines of code long – and can’t seem to find where to insert this.
And when I tried inserting the longer functions.php string above, directly into the functions.php file (right at the top,) it also did not create an automatic Read More in the post Excerpts.

Please advise, thanks

  • This topic was modified 13 minutes ago by rhythim.
  • This topic was modified 12 minutes ago by rhythim.

Viewing all articles
Browse latest Browse all 210725

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>