Unable to update post_meta (expiry date)
-
Hi,
I have extensively changed your plugin to fit my needs and part of that is that I want to be able to change the expiry date on certain listings via Php function; normally this is an easy task with update_post_meta but it is failing to work on the posts generated via Classified Listings. I suspect that it has something to do with the ‘Overwrite Default’ setting, but I am not sure.
Can you help me so that I can change the expiry date automatically when required? Most listings are fine with the default I have set in Settings, but some need to be changed, and it needs to happen automatically in response to various other factors – I have already written the function but the dates just won’t change. If it is the Overwrite Default being unchecked that blocks this, is there some code that I can add so that this is automatically checked for every listing? Or that particular function being removed completely? Otherwise can you explain why the update_post_meta won’t work on the expiry_date?
Alternatively, is there a way to override the default listing duration so different periods can be set depending on the particular conditions for different users when the listing is submitted? If this is in the extra features of the Pro plugin then I will have to see when I can afford that, but looking through the documentation I can’t see anything referring to this.
I hope you can help in some way.
- The topic ‘Unable to update post_meta (expiry date)’ is closed to new replies.