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

  1. DPartridge
    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?



  2. Stephanie Leary
    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