• goodolvic

    (@goodolvic)


    Hi there. This is a great plugin, but I’m looking to import posts after a specific date. The default settings will import the entire blog, which will create duplicates since I already have some posts transferred over. I’m poking around in the plugin code but it’s not immediately obvious what I can modify to import posts after a specific date. Perhaps adding an extra check in function do_posts_import for posts >= a specific date?

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter goodolvic

    (@goodolvic)

    If someone else comes across this post, I figured out a brute force solution.

    When the importer is running, it imports posts from Tumblr starting with the most recent and working backward chronologically. So I decided I would let it import posts until it got to the point where it caught up with the posts I already had in my WordPress blog.

    To force the import to stop, I cleared my data right when the import was at the point I needed it to stop. The option to clear data and abort the import is found in the plugin page in the WordPress admin area.

    • This reply was modified 1 year ago by goodolvic.

    @goodolvic the importer is supposed to already prevent importing duplicate posts. If you have a spare WordPress site handy you might try importing twice to confirm; I did this and it properly avoided importing posts that I had already imported.

    The plugin doesn’t offer a way to skip posts but this might be a nice suggestion to add: provide a way to add a filter to limit what posts are imported; though that would be more for the ability to add some PHP code to do that.

    Thread Starter goodolvic

    (@goodolvic)

    Ah yes I knew that, but the issue was the posts I already had in my blog were manually transferred one copy-paste at a time, instead of being created by the plugin. So if I attempt to import the entire blog then I’ll end up with duplicate posts alongside the manually transferred ones.

    But I agree, adding a filter for selecting which posts to import would be a great addition (whether by date range and perhaps tags).

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Import after a certain date’ is closed to new replies.