Support » Plugin: HTML Import 2 » [Plugin: Import HTML Pages] Regenerating redirects

  • Resolved DPartridge


    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?


Viewing 1 replies (of 1 total)
  • Plugin Author Stephanie Leary


    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!

Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: Import HTML Pages] Regenerating redirects’ is closed to new replies.