Skip to content

Lamosty.com

  • Articles
    • Reviews
    • Tutorials
    • Misc|Rants
  • Projects
    • WordPress Performance Optimizations
    • WordPress-Ansible Playbooks
    • RentiFlat
    • Bedrock Plugin Control
    • When Do You Come
    • Markers on Map
    • WordPress-Ansible Playbooks
  • About

Tag Archives: custom fields

Add new post meta data on ‘Add New’ page programmatically

How to add post meta data before it has been saved or published? Can’t use transitional hooks. After digging through code, you have to use add_meta_boxes action. Let’s say you have a custom post type book. Each book has several properties (meta data), such as the author, the publisher and the publication date. Now, WordPress …

Continue reading “Add new post meta data on ‘Add New’ page programmatically”

Posted byRastislav LamošApril 27, 2015Posted inArticles, TutorialsTags: admin, custom fields, meta boxes, meta data1 Comment on Add new post meta data on ‘Add New’ page programmatically
Lamosty.com, Blog at WordPress.com.
  • Follow Following
    • Lamosty.com
    • Already have a WordPress.com account? Log in now.
    • Lamosty.com
    • Customize
    • Follow Following
    • Sign up
    • Log in
    • Report this content
    • View site in Reader
    • Manage subscriptions
    • Collapse this bar