Is there any way to make a custom field for a post only if the author is a certain user?
This is what You are looking for https://www.advancedcustomfields.com/resources/custom-location-rules/
This is what You are looking for https://www.advancedcustomfields.com/resources/custom-location-rules/
WordPress Rest API custom field not updating till i manually update the post
As per outlined in the comments, by fixing a typo in my save function, and setting the third parameter in get_post_meta() to true, and false in selected() it worked liked a charm. Thanks everyone! Here’s the working code in case anyone is trying to add a select list custom field to their media manager: /* … Read more
Add forms dynamically in admin pages?
Custom User Dashboard
Changing form action based on selected value
pass custom value from single.php to another file via get
Adding text box with add_meta_box
Add link to wordpress field data
i suggest you check the the value of $checkbox by either checking checkbox under meta_key column in wp_postmeta or *your prefix_postmeta table in your database or simply do var_dump($checkbox); for testing if its 0 or null or an empty string or so then your if condition will not return true and $has_video will not be … Read more