Support » Plugins and Hacks » [Plugin: HeadSpace2 SEO] All in one seo Pack import bug [fixed]

  • Resolved viter-z-bayraku

    (@viter-z-bayraku)


    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/

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

Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: HeadSpace2 SEO] All in one seo Pack import bug [fixed]’ is closed to new replies.