WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] [Plugin: HeadSpace2 SEO] All in one seo Pack import bug [fixed] (2 posts)

  1. viter-z-bayraku
    Member
    Posted 4 years ago #

    For best import titles, keywords and descriptions please edit file headspace2/modules/import/all-in-one-seo.php and change these lines:

    Line 36:
    $values = $wpdb->get_results ("SELECT * FROM {$wpdb->postmeta} WHERE meta_key='keywords'");
    to:
    $values = $wpdb->get_results ("SELECT * FROM {$wpdb->postmeta} WHERE meta_key='_aioseop_keywords'");

    Line 45:
    $values = $wpdb->get_results ("SELECT * FROM {$wpdb->postmeta} WHERE meta_key='title'");
    to:
    $values = $wpdb->get_results ("SELECT * FROM {$wpdb->postmeta} WHERE meta_key='_aioseop_title'");

    Line 54:
    $values = $wpdb->get_results ("SELECT * FROM {$wpdb->postmeta} WHERE meta_key='description'");
    to:
    $values = $wpdb->get_results ("SELECT * FROM {$wpdb->postmeta} WHERE meta_key='_aioseop_description'");

    Line 69:

    $wpdb->query ("DELETE FROM {$wpdb->postmeta} WHERE meta_key='keywords'");
    $wpdb->query ("DELETE FROM {$wpdb->postmeta} WHERE meta_key='title'");
    $wpdb->query ("DELETE FROM {$wpdb->postmeta} WHERE meta_key='description'");

    to:

    $wpdb->query ("DELETE FROM {$wpdb->postmeta} WHERE meta_key='_aioseop_keywords'");
    $wpdb->query ("DELETE FROM {$wpdb->postmeta} WHERE meta_key='_aioseop_title'");
    $wpdb->query ("DELETE FROM {$wpdb->postmeta} WHERE meta_key='_aioseop_description'");

    http://wordpress.org/extend/plugins/headspace2/

  2. gorky5
    Member
    Posted 3 years ago #

    Thanks so much for this. I was getting the message "0 items were imported from All-in-one SEO". After I made these changes the importer worked fine.

Topic Closed

This topic has been closed to new replies.

About this Topic