WordPress.org

Ready to get started?Download WordPress

Forums

SEO Ultimate
[resolved] Meta Descriptions won't add (7 posts)

  1. benno_007
    Member
    Posted 1 year ago #

    Hi all,

    I've got Ultimate SEO Version 7.6.1 installed on my blog, and for some reason the meta descriptions aren't showing the excerpt. Installed on my website here: http://bit.ly/12XHSbk (bitly'd so it doesn't show up in google).

    If I put a meta description into the editor box it works and they appear, but otherwise it should default to {excerpt} right? It doesn't seem to be doing this!

    I've tried deleting and reinstalling the plugin but it didn't work. Yes, Meta Descriptions are enabled in the Modules section and the description field is set to {excerpt}.

    Anyone have any ideas?

    http://wordpress.org/extend/plugins/seo-ultimate/

  2. benno_007
    Member
    Posted 1 year ago #

    Nevermind. Resolved this by hacking the code.

    meta-descriptions.php:107

    $desc = str_replace(
    > array('{excerpt::autogen}', '{excerpt}')
    > , array($auto_excerpt, strip_tags($post->post_excerpt))
    > , $format);

    $post->post_excerpt is set to '', and as it is the last value in the replacement array it takes a higher priority than $auto_excerpt (which is correctly set).

  3. mrmccarrin
    Member
    Posted 1 year ago #

    Hi -

    I am having this problem as well and I was wondering where you put this code?

    Thanks,

    Megan

  4. mrmccarrin
    Member
    Posted 1 year ago #

    Hi -

    I am having this problem as well and I was wondering where you put this code?

    Thanks,

    Megan

  5. Lee Parsons
    Member
    Posted 1 year ago #

    I managed to get this working by editing the file located (within plugin) at:

    modules/meta/meta-descriptions.php

    find line: 111 which reads:

    array( $auto_excerpt, strip_tags($post->post_excerpt))

    within the code:

    $desc = str_replace(
    array('{excerpt::autogen}', '{excerpt}'),
    array(strip_tags($post->post_excerpt), $auto_excerpt),
    $format);

    and swap the order of the second arguments so line 111 reads:

    array(strip_tags($post->post_excerpt), $auto_excerpt)

    that should work

  6. Jeffrey L. Smith
    Member
    Plugin Author

    Posted 1 year ago #

    Thanks Lee, I will open a ticket to our Dev team and address on the next build/release.

    All the best and thanks for helping us make SEO Ultimate better.

  7. webvodka
    Member
    Posted 11 months ago #

    Thx, Lee

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.