This is searchable archive of our old support forums, which operated from 2012 - 2016. To find out how to get support for your current theme, please visit our support page.

Get custom post meta

  • Creator
    Topic
  • #1561
    iphoenix
    Participant

    Any way to create a get custom post meta function in child theme to use in template files?

    http://pastie.org/5547970

    Say if I wanted to add a themeblvd_get_custom_meta(‘custom_field’); to a page template within my child theme?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Author
    Replies
  • #1569
    Jason Bobich
    Keymaster

    Hello,

    I’m not sure that I’m following what you’re asking. So you created a function, but you’re asking how to use it? Or what do you mean? Wouldn’t you just call the function in your template file? Sorry I’m just a little confused by the question.

    #1597
    iphoenix
    Participant

    My fault, function does not work by itself. Do I need a filter or hook to add it in to my template files?

    #1598
    iphoenix
    Participant

    Nvm.. I could use get_post_custom_values() instead of creating a custom one

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.