• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

save_post won't work

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › General Discussion › save_post won't work

This topic is: resolved

Tagged: meta, post

  • This topic has 1 reply, 2 voices, and was last updated 11 years, 9 months ago by Robin.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • January 30, 2014 at 6:11 am #87794
    vajrasar
    Member

    I want to create (or update) a meta for unix timestamp relevant to start and end custom meta fields. For the same, I created this event which should run when a post is created, updated or published after it was drafted by a user.

    The problem is, the save_post is not firing (I assume). Any thoughts?

    https://gist.github.com/8707195.git


    I make WordPress websites using Genesis Framework.

    WordPress/Genesis Development | Customizations

    http://localhost
    January 30, 2014 at 9:21 am #87821
    Robin
    Member

    I had a similar thing I needed to do where I needed post B to have a custom field with meta from post A. To set it up correctly, I had one function which was hooked to both save_post and publish_post. I forget the full reasoning behind it but my research determined that they are two separate events, and to make sure I was covered whether the post was being saved, updated, or published, I needed both. My code is here if it helps you at all.

    Also if you are using the Custom Metabox/Field plugin, those are usually prefixed with an underscore, eg. _cmb_from_textdate_unix, so if you have underscores in one place but not the other, that may be part of the issue. HTH


    I do the best I can with what I’ve got. (say hey on twitter)

  • Author
    Posts
Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘General Discussion’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2025 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble