Forums

[resolved] Are functions within a plugin available to use in theme? (2 posts)

  1. Jacorre
    Member
    Posted 1 year ago #

    Hi everyone,

    I defined my custom post type, custom taxonomies, and custom fields and meta box within a plugin so it can be used no matter what theme.

    Within the plugin, I also created functions to use for outputting the data.

    Unfortunately, from what I've been reading, it looks like I can only use global $post within the loop.

    I'd like to use get_post_custom to grab all values and then output them where needed.

    Do I have to write code within each of my template files to do that? I thought it would be easier to create functions and then just call them?

  2. Jacorre
    Member
    Posted 1 year ago #

    Nevermind. I found that I wasn't echoing the results!

Topic Closed

This topic has been closed to new replies.

About this Topic