• Resolved cbright6062

    (@cbright6062)


    Hello,

    I am working on a new wordpress-based layout for the website I am the web administrator for.

    On this site, we will have an archive of old articles written over the years.

    I was wondering if there was a way I could add two custom article meta pieces, completely unrelated to the page itself.

    These two would be “Original Author” and “Date Written.”

    I am unsure if this is the correct place. But since this would involve coding into the articles’ template page, I figured this was a good place to try.

    Thank you,

    -cbright6062

Viewing 1 replies (of 1 total)
  • Below your post, in your WP visual editor, you have a custom fields form where you can specify metadata associated to that post. Then, at your template files, you can call that metadata using get_post_meta().

    <?php echo get_post_meta( get_the_ID(), 'original_author', true); ?>

    This will display the original_author metadata specified on your post custom fields.

Viewing 1 replies (of 1 total)

The topic ‘Custom fields for pages.’ is closed to new replies.