Support » Plugin: SEO Ultimate » Meta Descriptions won't add

  • Resolved benno_007

    (@benno_007)


    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/

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

    Hi –

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

    Thanks,

    Megan

    Hi –

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

    Thanks,

    Megan

    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

    Plugin Author Jeffrey L. Smith

    (@seo-design-solutions)

    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.

    Thx, Lee

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Meta Descriptions won't add’ is closed to new replies.