Created
June 9, 2021 11:03
-
-
Save chancecorbeil/8941c6cf650a25e76b908e08912a047d to your computer and use it in GitHub Desktop.
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
// Load custom fields using a post id | |
$postid = 315 ; // post ID 315 | |
$post = get_post( $postid ); // Use the post ID to get the post data | |
echo $postid; // The post ID | |
echo $post->post_title; // The post title | |
echo $post->route_id; // The custom field |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment