• raisinlove

    (@raisinlove)


    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!

Viewing 5 replies - 1 through 5 (of 5 total)
  • moshu

    (@moshu)

    Thread Starter raisinlove

    (@raisinlove)

    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.

    moshu

    (@moshu)

    Then you are doing something wrong. Just tested and it works.

    I don’t know what your “template system” is.

    Thread Starter raisinlove

    (@raisinlove)

    My template system is actually an existing CMS into which I am integrating WordPress.

    I’ll test it with the original page.php file

    Thread Starter raisinlove

    (@raisinlove)

    I was doing something wrong alright, I remade my custom page.php template and it works fine. Thanks for testing it.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Displaying Custom Fields in Page Templates?’ is closed to new replies.