• Resolved wrimomatt

    (@wrimomatt)


    I’m new to plugin development and have created a simple plugin that creates:

    1. a custom post type
    2. a couple of taxonomies for the post type
    3. custom boxes to collect additional post meta data

    My question: is there a way to add that collected post meta data to a theme’s existing templates, say an archive? It’s super easy to display in a custom theme, but I want it to work on any theme.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator bcworkz

    (@bcworkz)

    Post meta data is not something any theme is required to display, so you would need to hook into an action or filter that reliably fires before, during, or after the usual WP loop. For example, you could use the ‘loop_end’ action and only output meta data if is_single() is true.

    Thread Starter wrimomatt

    (@wrimomatt)

    thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘display custom meta data on any theme?’ is closed to new replies.