WordPress.org

Ready to get started?Download WordPress

Forums

JM Twitter Cards
[resolved] All In SEO Pack & Empty Title (13 posts)

  1. simtoalev
    Member
    Posted 1 year ago #

    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/

  2. jmlapam
    Member
    Plugin Author

    Posted 1 year ago #

    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 :)

  3. jmlapam
    Member
    Plugin Author

    Posted 1 year ago #

    3.0.5 should fix the problem :)

  4. simtoalev
    Member
    Posted 1 year ago #

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

  5. jmlapam
    Member
    Plugin Author

    Posted 1 year ago #

    no problem :) thanks for reporting

  6. Matsuri Times
    Member
    Posted 1 year ago #

    (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)

  7. jmlapam
    Member
    Plugin Author

    Posted 1 year ago #

    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.

  8. Matsuri Times
    Member
    Posted 1 year ago #

    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.

  9. jmlapam
    Member
    Plugin Author

    Posted 1 year ago #

    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 ^^

  10. Matsuri Times
    Member
    Posted 1 year ago #

    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.

  11. jmlapam
    Member
    Plugin Author

    Posted 1 year ago #

    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.

  12. Matsuri Times
    Member
    Posted 1 year ago #

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

  13. jmlapam
    Member
    Plugin Author

    Posted 1 year ago #

    You're welcome ^^

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.