• From the WP-o-Matic help:
    ———————————-
    How it works
    To avoid incoherent dates due to lousy setup feeds, WP-o-Matic will use the feed date only if these conditions are met:

    First, of course, if the option is enabled in the campaign settings
    ->> The feed item date is not is not too far in the past (specifically, as much time as the campaign frequency)
    The feed item date is not in the future
    ———————————-

    The problem is that I am importing a feed with old post dates, so how can I make it keep the original dates? Maybe a simple hack on the code?

    http://wordpress.org/extend/plugins/wp-o-matic/

Viewing 1 replies (of 1 total)
  • Chris

    (@der-wupperpirat)

    Hi,

    open wp-o-matic.php and search for:

    if($campaign->feeddate && ($item->get_date('U') > (current_time('timestamp', 1) - $campaign->frequency) && $item->get_date('U') < current_time('timestamp', 1)))

    change this line to:

    if($item->get_date('U') < current_time('timestamp', 1))

    Now it takes the original feed date as long as it is not a future date.

    -Chris

Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: WP-o-Matic] Use feed date’ is closed to new replies.