If the plugin works the way I think it does, you could try changing the priority of your gateway_set_post_format
function being added to the save_post action.
Your plugin may have a larger priority number which would make it fire later than yours.
If the plugin does not change the custom field value until after your function is run, then that could explain the current behavior.
add_action('save_post', 'gateway_set_post_format',999, 1);
I hope you get it sorted out.
Related Posts:
- Update all posts automatically when using post_meta
- Better post meta efficiency?
- Sanitizing `wp_editor();` Values for Database, Edit, and Display
- What Is meta_id In wp_postmeta?
- Add custom field automatically (add_post_meta) with value based on number of words of article
- How can I sort posts by the date and a custom meta field?
- Cannot retrieve a custom RSS field from posts
- Customize rel=canonical tag for single blog post
- How to I retrieve the ID from the Posts page?
- if in category but only with post meta
- Saving Post Data in Another Database
- Add multiple meta keys to a post at once
- saving/reading custom field value does not work – no value gets POSTed
- Post meta not working
- How do you update post date (year only) in a separate custom field?
- WP_Query sort by meta_value_num or date
- Creating Ordered Query using Meta_key
- How enter custom post meta or custom field on box post list archive page?
- How to add category to: ‘wp-admin/post-new.php’?
- How to protect pages with double authentication: password + email (in custom field)
- How set featured posts using checkbox in post edit screen?
- How to allow hidden custom fields to be added from wp-admin/post.php?
- Custom Field in Featured image for A particular post
- Convert custom fields to post categories
- Most efficient way to insert a post outside WordPress?
- How to batch update post content with custom post meta value
- Change slug with custom field
- Prevent duplicate posts in wp_insert_post using custom fields
- Adding a Nav menu to post admin
- Edit meta data does’t work with custom sql
- Paragraphs removed when using get_post_custom()?
- Human Time Diff, change mins to minutes
- get_post_custom stripping styling issue
- How to change what the post creation page looks like?
- Exporting Data from WordPress into a flat table
- Adding Multiple Values to a Post Meta Key
- Using radio button meta data from a custom meta box
- Autoremove empty custom fields
- PHP Notice error (when on 404 page)
- Checking if a post with certain meta value exists
- Modify WP_Post before processing
- Save re-arranged draggable post items to wordpress database
- I would like to give special promotion for the first 100 posts in my blog? Can anyone tell me how to do that?
- Change post_date to post_modified date on post template?
- Duplicating Table of Contents for Paginated Post
- Converting a dynamic piece of code using WordPress Loop into a static one using Post ID
- WP_Query orderby not working with meta_value_num and menu_order
- is there a way to show the the post title after the image?
- How do I correctly set up a WP-Query to only show upcoming event-posts?
- How to display Common posts from specific Tag & Category with Shortcode
- Is there a way to notify specific users when new posts are published to specific pages?
- MySql query to get posts with all meta and terms
- Categories list into registration form
- Add a custom meta box in the post options that loads some html code in the header
- Is it possible to paste a link without tags and make it directly a link in a post?
- Query Posts With Over 1000 Views
- Saving custom fields to a custom taxonomy
- Hooking into the post editing screen for an existing page only
- Query Posts by Custom Field
- How to rate a post from Admin Side / Manually?
- Is it possible to customize the post according to post format in single.php?
- Change all author links in Blog roll
- How to calculate the average of a post meta value(Numeric) of a specific author
- Edit multiple custom post types while saving a new or edited post
- Show number of posts by logged in user
- How does WP decide how to display a page
- Insert data from custom created PHP page into wp_postmeta table
- The loop starting at a certain ID
- Simple Custom Metabox Not Saving
- Adding external field to my post form (admin side) and to post show (frontend side)
- How To Use Custom Fields With .mp3 Links
- how can display a post on home screen without images
- A better code for no post format?
- Select another post in a post meta like a parent page is selected while editing a page
- SQL DELETE multiple post_meta on single and multi-sites
- Show posts from WP Custom Post Type selected from a field in a metabox
- Automatically select template based on query string for New Posts
- Is there a way to save different data when USER interacts with the same POST?
- Add postmeta to all blog posts
- How to get value of a selected option from select tag and use it in WP_query to filter posts?
- When working with a post, almost all wp_postmeta are deleted
- How to fetch posts that are stored in the different table than the default table (wp_posts)?
- Check if user has avatar
- How to get all posts in gallery post format template
- Filter question list on substring of metavalue
- Add a meta to a post submited from a frontend form
- How can I set and update the the_date according to a custom field of the post
- WP Query between posts custom fields [duplicate]
- get_the_ID() fails the first time, returns a value the second time it’s called
- How to get only current images of a post
- Run function after post is updated
- Using Post ID and Page ID in same function
- Apply comment to different post (not the current post) [duplicate]
- Adding custom fields to the Quick Edit screen – puzzled about the column concept
- How to only allow post to be deleted if custom field doesn’t exist
- How do I insert a custom field in a user submitted post?
- Post Format Status [closed]
- How to detect if an ACF custom-field is really in use?
- NewsPaper WP Theme – Additional Related Posts Filter by Time (divTag composer)
- Site ‘Categories’: save an admin global setting with post metadata [closed]