Forums

Custom field display (2 posts)

  1. kr3t3n
    Member
    Posted 10 months 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:
    key=test
    value=123

    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. filosofo
    Member
    Posted 10 months ago #

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

Reply

You must log in to post.

About this Topic