WordPress.org

Ready to get started?Download WordPress

Forums

Advanced Excerpt
[resolved] Broken custom (8 posts)

  1. NicoR
    Member
    Posted 2 years ago #

    In version 4, no rules are respected on customizations.

    http://wordpress.org/extend/plugins/advanced-excerpt/

  2. NicoR
    Member
    Posted 2 years ago #

    ok the problem come from the line 119 var $options does not work, this one by rempalcer $this->custom_options and everything works as before

  3. basvd
    Member
    Plugin Contributor

    Posted 2 years ago #

    This problem is a duplicate of: the_advanced_excerpt() no longer overrides options

    Thanks for finding a solution! This will be fixed in the next update.

  4. YouON
    Member
    Posted 2 years ago #

    please be clear explaining the solution... post the entire block of code, I've tried this fix, but the bug persist... please be fast ;)

  5. NicoR
    Member
    Posted 2 years ago #

    just replace the line 119 and 120 of the plugin with this :
    (is_array($this->custom_options))
    $r = array_merge($this->default_options, $this->custom_options);

  6. YouON
    Member
    Posted 2 years ago #

    You save my site NicoR, thank you very much...
    all the best :)

  7. m4tthumphrey
    Member
    Posted 2 years ago #

    The solution still isn't 100% clear to someone who doesn't know what they are doing.

    Replace lines 118 - 124 of /plugins/advanced-excerpt.php with the following:

    // Merge options
          if (is_array($this->custom_options))
            $r = array_merge($this->default_options, $this->custom_options);
          else
            $r = $this->default_options;
    
          extract($r, EXTR_SKIP);

    To the plugin author, this needs to be fixed ASAP as it ruins the page design. Just update to 4.0.1

  8. njrichez
    Member
    Posted 2 years ago #

    Mine does not work at all. Is this the reason why? Do I need to update the code as this states? The site where I'm trying to suppress the shortcode and control the excerpts is here: http://www.floralnewsprint.com
    As you can see, no worky.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic