WordPress.org

Support

Support » Plugins and Hacks » Hacks » Move posts category to an other one in a specific period time

Move posts category to an other one in a specific period time

  • Hi guys,

    I’m looking for some Php code to automatically change posts category after
    specific period time (ex. : 2 * 86400 = 48 hours after publishing ), this mean every post in category X will move to category X2 one by one after 86400 seconds (24hrs) since publish time.

    I found :

    [Code moderated as per the Forum Rules. Please use the pastebin]

    all of this codes works Okay to gather :

    The post by ID 64 will remove from cat2 after 48Hrs, but I need it to move all posts(every post published 48Hrs ago NOT 2days ago) from cat2 to cat3.

    May somebody help please?

    all suggestions are welcomed :).

    Thank you

Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Move posts category to an other one in a specific period time’ is closed to new replies.
Skip to toolbar