WordPress.org

Forums

HTML Import 2
[resolved] [Plugin: Import HTML Pages] Regenerating redirects (2 posts)

  1. DPartridge
    Member
    Posted 4 years ago #

    Hi Stephanie,

    I am using the beta version of Import HTML 2.0. When attempting to regenerate the redirects I end up with the following error:

    No posts were found with the URL_before_HTML_Import custom field. Could not generate rewrite rules.

    To point you in the right direction, I should state that my posts were added as drafts and have not been published yet. Maybe the program isn't looking for drafts?

    Dennis

    http://wordpress.org/extend/plugins/import-html-pages/

  2. Stephanie Leary
    Member
    Plugin Author

    Posted 4 years ago #

    Thanks for catching that, Dennis. I'll fix it in the next update. If you want to fix your copy immediately, change line 76 in importer.php to this:

    $imported = get_posts(array('meta_key' => 'URL_before_HTML_Import', 'post_type' => 'any', 'post_status' => 'any'));

    That should take care of it!

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • HTML Import 2
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic