Hi, I've added custom fields to my pages (not posts) and I tried using the "the_meta()" function in the page.php template but it isn't displaying my custom field data. Is this a bug? If not, is there a way to make this work?
thank you!
Hi, I've added custom fields to my pages (not posts) and I tried using the "the_meta()" function in the page.php template but it isn't displaying my custom field data. Is this a bug? If not, is there a way to make this work?
thank you!
Is it in The_Loop?
see: Using_Custom_Fields#Displaying_Custom_Fields
I did place the_meta() within the loop, but my mistake was that I removed the wordpress header call since I was using my own template system.
The instructions are to include the Wordpress header and set USE_THEMES to false, which I have now done, but it's still not working: the_meta() is not displaying my Custom Fields. Plus, despite having set the use of Worpress themes to false, I have to manually remove the header from the default template as it is being displayed anyway.
Then you are doing something wrong. Just tested and it works.
I don't know what your "template system" is.
My template system is actually an existing CMS into which I am integrating Wordpress.
I'll test it with the original page.php file
I was doing something wrong alright, I remade my custom page.php template and it works fine. Thanks for testing it.
This topic has been closed to new replies.