Skip Navigation

[Resolved] How can I exclude posts by a certain role from auto-expiring

This support ticket is created 4 years, 9 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/Karachi (GMT+05:00)

This topic contains 1 reply, has 2 voices.

Last updated by Waqar 4 years, 9 months ago.

Assisted by: Waqar.

Author
Posts
#1576623

Tell us what you are trying to do?
- I want the posts for authors to expire automatically after 30 days but posts from administrators to never expire.

Is there any documentation that you are following?
https://toolset.com/documentation/user-guides/front-end-forms/automatic-post-expiration/

Is there a similar example that we can see?

What is the link to your site?

#1577321

Hi Tim,

Thank you for contacting us and I'd be happy to assist.

One way to achieve this is by making sure that authors can only add posts from the front-end using the Toolset Forms, without access to the back-end.

If that option can work on your website, you can set the post-expiration settings in that form to expire the resulting posts in 30 days.
( ref: https://toolset.com/documentation/user-guides/front-end-forms/automatic-post-expiration/ )

As for the administrators, they can either add posts directly from the admin area or use another front-end form, but without any post-expiration settings.

I hope this helps and please let me know if you need any further assistance around this.

regards,
Waqar