Support » Plugin: Category Posts Widget » [Plugin: Category Posts Widget] How to modify the […]

  • Hi,

    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.


Viewing 1 replies (of 1 total)
  • 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 !

Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: Category Posts Widget] How to modify the […]’ is closed to new replies.