I believe the issue is this line:
if( $post->post_type == 'startups' ) return;
Won’t your custom posts always have the type startups? Basically you are telling your code that whenever I save my custom post type, ignore my custom fields. You probably meant to have one of the WP reserved types (e.g. revision or attachment) that would prevent your meta data from being overwritten in inconvenient ways.
I would change that line to
if( $post->post_type == 'revision' ) return;
Or you could remove that line entirely (for testing purposes).
Related Posts:
- What Can I Use To Add A Custom Button Between Publish button and Move To Trash?
- Using Custom Posts with Metaboxes and Drop-downs
- Adding custom fields to bbpress reply form
- Is there a way to create a meta box that can be added multiple times to a post dynamically?
- Simple Custom Metabox Not Saving
- Adding an option to post editor to show a site disclaimer or message
- Display metabox with date
- Is there a action hook for the “Empty Trash” button?
- Remove Categories / Tags From Admin Menu
- How to display by default only published posts/pages in the admin area?
- How to force one column layout on custom post type edit page?
- Find out who deleted a page or post?
- Post/Page Preview Template
- Custom Post Types, slug, archive and SEO plugins
- How can I retrieve multiple get_post_meta values efficiently?
- Setting Custom Sort Order of Posts within a Category
- Search Custom Post Type Pages and Custom Fields in 2 Dropdowns?
- Where does WordPress store the users customization in the theme
- Add a checkbox to post screen that adds a class to the title
- Using single.php from plugin folder instead of default template folder
- Can I force a metabox to be in one column?
- using wp_update_post on save_post
- How to add a new tab to page editor
- Custom permalink structure only for default posts
- Listen to Post action
- Replace image attributes for lazyload plugin (data-src)
- Exclude drafts in all() view of edit.php
- delete post also attachments
- WordPress plugin to publish to multiple remote WordPress blogs
- How to add metabox for post of specific category
- Is this the best (and only) option to style CSS for a given post type?
- Sort post by attributes ‘order’
- Any way to create a revision of a post ONLY with a new button in the Meta Box?
- Attach pdf file to custom post type
- How to batch update post content with custom post meta value
- upload image in a meta box
- How to display comments and comment form on custom post type?
- How to disable drafts?
- How to change the layout and styling of posts according to their category in WordPress?
- How do I create a featured post within a custom post type?
- how to enable different number of revisions for different blogs when using WPMU?
- adding a custom css class to post
- Prevent duplicate posts in wp_insert_post using custom fields
- Custom Post Type Pagination Doesn’t Work in WordPress 3.4
- Static posts page with home.php
- Add default content to post (for specific category)
- Unattaching images from a post
- Pagination not working on Custom Page Template
- How to wrap every image in a post with a div?
- Post from front-end only by logged in users, form posts as “posted by:
- meta_box or custom_field as a second tinymce post-instance?
- 1 column admin screen options – move submitdiv to bottom
- Delete Post Link to delete post, its meta and attachments
- Navigation link to specific user page
- multicheck box for post metabox
- Show One Category on Post
- Create A Metabox For A Custom Field
- WordPress Delete hook with wp_delete_post function?
- Custom post type single (permalink) throws a 404 error
- Order post by year DESC and month ASC
- How to edit wordpress RSS feed to show post title only
- Add custom field to category of custom post type
- Display custom post types by date field
- Have save_post write to database image meta [closed]
- How to hook a function only when I need to delete permanently a post?
- Allow role to delete posts but block him the wp-admin
- Why does `url_to_postid` return 0 when testing `page_for_posts` Page?
- Do I use custom post type or something else?
- how “manage_posts_custom_column” action hook relate to “manage_${post_type}_columns” filter hook?
- display order of connections
- Delete Post From Front-End and attachment permanently
- Add custom fields to post programmatically
- same template for multiple custom post type single
- if custom post type exist
- Using radio button meta data from a custom meta box
- How to place HTML below the title of the (custom) post overview
- How to get a nofication when post submitted
- user contributed content as custom post types
- Custom post type permalinks breaking due to 3.1 bug fix
- Save list from a custom meta box?
- Remove custom posts that match taxonomy value
- Custom Theme Want To Remove One Category From All Displays
- Is it possible to have two different previews of a post (ie. two templates for one post)?
- Is there any WordPress alternative to Book module of Drupal?
- ‘Invalid post type’ error when importing from one site to another
- .current-menu-item class on custom post type children pages – again?
- Blogroll – Different layout for first post
- How to delete old posts’ edits to save space?
- Filter Posts By Tag
- Get post id in wordpress action?
- Display page content AFTER a loop of posts
- How to show featured image in custom post type dashboard post page
- Run a function when post is deleted?
- Post Type Label Name
- wp_query ‘s’ parameter does not work with custom post type
- How to start with post number x?
- How can I create custom button in post.php
- how to replace embedded “full” sized images within a post with the “large” ones
- Downgrade user from role that allows post creation
- Remove slashes (both before and after) in relative post url