Skip Navigation

[Resolved] Downgrade Ad from 'Featured Ad' to 'Free Ad' after 7 days circulating

This support ticket is created 5 years, 8 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

This topic contains 1 reply, has 2 voices.

Last updated by Luo Yang 5 years, 8 months ago.

Assisted by: Luo Yang.

Author
Posts
#1275459

Hi,

I have a web site based on Toolset Types Classifieds.

I have 3 types of Ads: Free, Top and Hot. I need 'Top Ads' to circulate 7 days, afterwards and need to downgrade them to Free Ads and let them circulate 23 more days.

Is there an easy way to achieve this?
What variables should be considered?

Please I will appreciate your guide through the process.

#1275505

Hello,

There is a built-in feature within Toolset Forms plugin:
Automatic post expiration in Toolset forms
https://toolset.com/documentation/user-guides/automatic-post-expiration/

It can change post status when post is expired once, but in your case, it needs to be changed twice.
So you will consider custom codes, here are my suggestions:
1) Use "Automatic post expiration" feature to change the post status to "Trash" after 30 days.

2) Setup a custom field "types of Ads", with three options: Free, Top and Hot

3) Create a Cron job:
https://codex.wordpress.org/Function_Reference/wp_cron
Change 'Top' Ads posts to "Free" Ads posts, after 7 days