WordPress.org

Ready to get started?Download WordPress

Forums

Continue reading link error (5 posts)

  1. xinxin
    Member
    Posted 3 years ago #

    I have built a site using the Clear Styles 1.2 theme. I chose the theme because it is clean and clear.

    However, upon getting the site together I have found that there is a ... continue reading ... function that is broken. Eg when a reader clicks on a post to go to read it in full or make a comment it brings up a non-functioning ...continue reading ...

    This is the code from functions.php - what changes should I make?

    function clearstyle_excerpt_length($length) {
        return 40;
    }
    
    add_filter('excerpt_length', 'clearstyle_excerpt_length');
    
    function clearstyle_continue_reading_link() {
        return ' <a href="' . get_permalink() . '">' . __('Continue reading', 'clearstyle') . '</a>';
    }
    
    function clearstyle_auto_excerpt_more($more) {
        return ' …' . clearstyle_continue_reading_link();
    }
    
    add_filter('excerpt_more', 'clearstyle_auto_excerpt_more');
    
    function clearstyle_custom_excerpt_more($output) {
        if (has_excerpt() && !is_attachment()) {
            $output .= clearstyle_continue_reading_link();
        }
        return $output;
    }
    
    add_filter('get_the_excerpt', 'clearstyle_custom_excerpt_more');

    Or am I looking in the wrong place?

  2. xinxin
    Member
    Posted 3 years ago #

    OK, so I have done a little more sleuthing. The same thing happens when I use different themes ... the default Twenty Ten or Atahualpa.

    Basically I get a continue reading link (it's different in each theme) which goes nowhere. I have tried Firefox, IE and Chrome - no joy.

    These are the fixes that I have tried:

    1. Re-uploaded the core WP files (from a fresh download)
    2. Deactivated all of my plugins

    Neither of these have worked.

    Any ideas? At all?

  3. Tara
    Member
    Posted 3 years ago #

    -try deactivating ALL plugins temporarily to narrow down and possibly fix the problem. If the problem goes away, activate them individually to find the culprit.

  4. btard
    Member
    Posted 3 years ago #

    same deal with me on "Twenty Ten" theme

  5. btard
    Member
    Posted 3 years ago #

    For me, the problem was caused by Andy Beard's plugin called "Nofollow Those Dupes".

    As found here http://andybeard.eu/wordpress-plugins/

Topic Closed

This topic has been closed to new replies.

About this Topic