Ready to get started?Download WordPress


Custom field display (2 posts)

  1. kr3t3n
    Posted 5 years ago #

    Hi, I have a rather stupid question, but I really can't get the custom_field tutorial. I want to display a custom field as it is. Nothing more, nothing less. For example:

    i've added to a post the following:

    I want to display the value of "test" somewhere in my template with the link of the post it is assigned to.
    Just text with a link. That's it.

    thanks in advance and sorry if i'm wasting your time with stupid questions.

  2. Austin Matzko
    Posted 5 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Topic