custom field – update_post_meta not working well
Question
I need help with this
I am using update_post_meta to update some custom field for post type and it doesn’t work
and that the code in the theme script file
jQuery(document).on("click", "button#statuso", function() {
update_post_meta('post', get_the_ID(), 'task_status', 'open');
});
and if I used script tag in the single.php when I refresh the page it updates without triggering the event
thank you
0
11 months
2022-02-27T15:02:34-05:00
2022-02-27T15:02:34-05:00 0 Answers
0 views
0
Leave an answer