(please don't refresh or leave the page, this shouldn't take long)
(please don't refresh or leave the page, this shouldn't take long)
1000+
Reviews!
1000+
Reviews!
SEARCH SITE
Favorites
Cart
SEARCH
1000+
Reviews!
Click To Call Us Now!
SEARCH
Favorites
Cart
SAVE THE DATES
WEDDING INVITATIONS
THANK YOU CARDS
EXTRAS
MAKE DEPOSIT
BLOG
MY CART
MY ACCOUNT
CONTACT US
Our Design Process
After receiving your order, our designers will create a digital proof based on the information you provide us within two business days. We will NOT print your order until you have received a digital proof and have given us your approval. You will have the chance to make changes to your design. You also have the option to see a printed proof before you have approved your order. There is a charge to print and mail these proofs. PLEASE NOTE that if you forego seeing a printed proof of your order all guarantees of reprints due to the way colors or pictures are printed will be voided and you will take full responsibility for any reprint costs. Final payment is due when you approve to print. Before doing so you will need to use the checklist provided with each proof to make sure there are no errors. We will not be responsible for any errors that have been approved. If you have additional questions, please contact us today.
X
Forgot Your Password?
Please enter your email below. You will receive a link to a create a new password via email.
Reset Password
X
close this message

POST META-DATA INFO

Page ID:771
You can get a page's ID with 'get_the_ID( )'
You can get a page's meta_data by using "get_post_meta(get_the_ID( ))" and printing it out with "print_r( )"
After creating a new page the only meta_data that exists is the '_edit_lock' which is a random number that I don't understand.
You can update a page's template with "update_post_meta('thePageID', '_wp_page_template', 'thedirectory/thefile.php')"
Once the metadata exists you can access it with "get_post_meta('thePageID', 'theMetaKey')" which in the case of the template was "_wp_page_template"
But it will be stored in an array. Here's an example...

   I created a custom meta field, "test-data", using update_post_meta(get_the_ID( ), 'test-data', 'This is test data')
   Trying to use "echo get_post_meta(get_the_ID(), 'test-data')" just prints out "Array"... so what can you do?
   Let's create two variables, "$postMeta" and "$customMeta", to show some options.
   I set $postMeta to "get_post_meta(get_the_ID( ))" which grabs ALL of the post meta for the page.
   I set $customMeta to "get_post_meta(get_the_ID( ), 'test-data')" which grabs ONLY the one meta key.
   Here's what you see if you use print_r on $postMeta...

Array ( [test-data] => Array ( [0] => This is test data ) [_wp_page_template] => Array ( [0] => info-dump/post-meta-data-info.php ) [_edit_lock] => Array ( [0] => 1670613637:1 ) )

   And here's what you see if you use print_r on $customMeta...

Array ( [0] => This is test data )

   Using $postMeta['test-data'][0] I get: "This is test data"
   Using $customMeta[0] I get: "This is test data"

   Is there a better way? If so I haven't found it yet.