WordPress.org

Support

Support » Plugins and Hacks » [Plugin: Super Widgets] Continue Reading Link isn't correct

[Plugin: Super Widgets] Continue Reading Link isn't correct

  • Hi there,

    Great plugin; I use it on multiple sites. One problem I’m having is that the “Continue Reading…” link (not adding a custom excerpt) for a Page is linking to the home page instead of the actual page it should be linking to. The title of the widget links properly.

    Any insight here would be great.

    Thanks,
    Jason

    http://wordpress.org/extend/plugins/super-widgets/

Viewing 4 replies - 1 through 4 (of 4 total)
  • I have just found the same issue – the continue reading link goes to the home page and not the page where the excerpt is pulled in from….can anybody help with this?

    Also – i cannot work out how to set the number of words displayed as the excerpt / the excerpt length – it seems to be 40 words as default. linkhousemedia – have you changed the excerpt length at all??

    Many thanks!
    Lucy

    @lucyryder, I ended up using my functions.php file to remove the “Continue Reading” link from the widget (and consequently the rest of the site which in my case didn’t matter). The title of the widget links to the correct location.

    From what I understand, the excerpt length just follows your wordpress settings, which you can change using your functions file like so:

    add_action('after_setup_theme', 'remove_theme_features', 11 );
    function remove_theme_features() {
       remove_filter( 'excerpt_length', 'twentyeleven_excerpt_length' );
    }
    
    function my_excerpt_length( $length ) {
       return 30; //this is where you put your new length
    }
    add_filter( 'excerpt_length', 'my_excerpt_length' );

    Hope that helps a little.
    Jason

    Hi Jason,

    Thanks so much for taking the time in getting back to me!! One thing – if i set the excerpt length in my functions.php file, will that override any i have set in my page templates, which I currently have written in for a particular page…?
    Thanks again!!!
    Lucy

    No problem Lucy.

    Changing it the way I described will change it site-wide. If you want to change it for your posts and pages you could try something like this inside the function (described here: http://wordpress.org/support/topic/different-excerpt-lengths-for-different-categories):

    if ( is_category(1) ) {
    	return 10;
    }

    is_category() might not be the right answer for you but that should get you on the right track.

    Good luck!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Plugin: Super Widgets] Continue Reading Link isn't correct’ is closed to new replies.