Last active
October 8, 2019 08:30
-
-
Save vanaf1979/a3330b5b7045c2ca2d1d808cec11833e to your computer and use it in GitHub Desktop.
Gist for my article WordPress: Access post meta fields through WP_Post. https://vanaf1979.nl/wordpress-access-post-meta-fields-through-wp-post/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php add_post_meta( $post->ID , 'some_meta_field' , 'some_value' ); ?> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment