Category Posts Widget
How to modify the [...] (2 posts)

  1. creacomdesign
    Posted 5 years ago #


    I would like to replace the " [...] " at the end of the excerpt by a "read more" link, is it possible? And where can I modify this?! I have been looking in the code of the category-post.php file but can't find where it's hidden :o)

    Thanks a lot for your ideas and help.


  2. magicsun
    Posted 5 years ago #

    I use this to overwrite the [...] for all posts. This is because the only time i use excerpts are inside this widget.

    function new_excerpt_more($more) {
           global $post;
    	return '<a href="'. get_permalink($post->ID) . '">Read the Rest...</a>';
    add_filter('excerpt_more', 'new_excerpt_more');

    Add that to your functions.php file. Then change the return to what you like. Now it links to the post itself.

    If you only need to edit this for the widget, i'm not sure either. Couldn't find the [...] in the plugin, because it's the default from wordpress. I'm pretty sure you can add some coding to the plugin to alter it, but I couldn't figure it out myself ... Sorry !

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Category Posts Widget
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic