Timeline for How can I set and update the the_date according to a custom field of the post
Current License: CC BY-SA 3.0
13 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Sep 23, 2015 at 22:46 | comment | added | Pete | Wanna have a go? :) | |
Sep 23, 2015 at 17:51 | comment | added | Nate Allen | I haven't used that plugin before, but it looks like you'll also need to call the change_post_date function with the wpuf_add_post_after_insert and wpuf_edit_post_after_update hooks. You may also need to unhook and re-hook them, but I'm not sure. | |
Sep 23, 2015 at 17:32 | vote | accept | Pete | ||
Sep 23, 2015 at 17:29 | comment | added | Pete | OK it does work but here's the thing... I'm using the front end posting plugin WP User Frontend Pro and you need to hook it into the plugin if you post using it. Your code works fine from the back end... docs.wedevs.com/using-action-hook-field | |
Sep 23, 2015 at 17:19 | comment | added | Nate Allen | I updated the code. Try again? And are you getting a specific error? (You may need to enable WP_DEBUG) | |
Sep 23, 2015 at 17:19 | comment | added | Pete | Whoops, sorry. It doesn't work . | |
Sep 23, 2015 at 17:14 | history | edited | Nate Allen | CC BY-SA 3.0 |
deleted 13 characters in body
|
Sep 23, 2015 at 17:03 | comment | added | Pete | And very well outlayed and commented | |
Sep 23, 2015 at 17:01 | comment | added | Nate Allen | You're welcome; I'm glad it helped! | |
Sep 23, 2015 at 17:00 | vote | accept | Pete | ||
Sep 23, 2015 at 17:18 | |||||
Sep 23, 2015 at 16:57 | comment | added | Pete | Works perfectly, thanks heaps. I've looked everywhere for this. Hopefully this will help others | |
Sep 23, 2015 at 16:39 | history | edited | Nate Allen | CC BY-SA 3.0 |
Changed code so it removes the hook and adds it back in, which is a better method
|
Sep 23, 2015 at 16:33 | history | answered | Nate Allen | CC BY-SA 3.0 |