WordPress.org

Support

Support » Plugins and Hacks » JM Twitter Cards » [Resolved] All In SEO Pack & Empty Title

[Resolved] All In SEO Pack & Empty Title

  • Hi,
    I’m using the All In SEO Pack plug-in and I installed the JM Twitter Cards. When I was tried to this pluging, I saw “twitter:title” is empty.

    I Found what is the problem. I’m using SEO plug-in but not filling the plugin’s title input. I commented this line on jm-twitter-cards.php and I solved the problem.

    /* elseif (class_exists(‘All_in_One_SEO_Pack’)) {
    global $post;
    $post_id = $post;
    if (is_object($post_id)) $post_id = $post_id->ID;
    $cardTitle = htmlspecialchars(stripcslashes(get_post_meta($post_id, ‘_aioseop_title’, true)));
    $cardDescription = htmlspecialchars(stripcslashes(get_post_meta($post_id, ‘_aioseop_description’, true)));
    } */

    But maybe you must make selectable this options in the settings page.

    BTW: Sorry for my English.

    http://wordpress.org/extend/plugins/jm-twitter-cards/

Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Author tweetpressfr

    @jmlapam

    Hi,

    Too bad you do not use the title feature in All in One SEO. Nevertheless the plugin should take into account this case even if I would recommand filling out the title field in your SEO plugin.

    This will be added and you’re perfectly right this option can be selectable in option page. Thanks for reporting dude 🙂

    Plugin Author tweetpressfr

    @jmlapam

    3.0.5 should fix the problem 🙂

    Thank you dude. I updated the plugin. It’s better now.

    Plugin Author tweetpressfr

    @jmlapam

    no problem 🙂 thanks for reporting

    (because I understood the value was chosen automatically, I reported it was not working, later I edited the post after it was already replied to)

    Plugin Author tweetpressfr

    @jmlapam

    Hi, you can disable All in One SEO option in settings. If you do such a thing the plugin will grab post title instead.

    But if you choose to use All in One SEO title, indeed you’ll have to fulfill All in One SEO title field.

    Have you thought of adding a logic that if the title from All in one SEO is empty, then you use the post title?

    It seems to rather natural to set things in SEO only when I want to make change to default one.

    Plugin Author tweetpressfr

    @jmlapam

    Interesting, this could be added. I think you’re right, on no account meta:title should be empty. Thanks for reporting. This will be added in the next update 🙂

    BTW : congrats for your very first posts on wordpress.org welcome ^^

    Thank you, looking forward to.

    That’s not a new idea, plugins for Facebook OpenGraph deal with it this way. For description I would suggest checking AIOSEO -> excerpt -> post content, and first not empty gets into the meta value.

    Plugin Author tweetpressfr

    @jmlapam

    I do not need to do this. I just have to test if meta value is set in if statement and it ‘ll do the job.

    Hello, I missed the information about update. Thank you for introducing this feature!

    Plugin Author tweetpressfr

    @jmlapam

    You’re welcome ^^

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘[Resolved] All In SEO Pack & Empty Title’ is closed to new replies.
Skip to toolbar