Forums

Custom Fields - adding them to the admin area by default (3 posts)

  1. tjobbe
    Member
    Posted 12 months ago #

    Hi Guys, I need a little bit of help with something I cannot figure out!

    I'm making a web site for an artist, and I have successfully managed to add custom fields to a post and echo them on the single.php page no problems using this code:

    <?php $medium = get_post_meta($post->ID, 'Medium', true); ?>
    			<?php $size = get_post_meta($post->ID, 'Size', true); ?>
    			<?php $year = get_post_meta($post->ID, 'Year', true); ?>
    
    			<p><strong>Medium:</strong> <?php echo $medium; ?><br />
    			<strong>Size:</strong> <?php echo $size; ?> cms<br />
    			<strong>Year:</strong> <?php echo $year; ?></p>

    However, I'd like the custom fields to be in the "add new post" wysywig part by default, under the so that the artist needn't add these custom fields from scratch, simply just populate them.

    Is this possible?

  2. esmi
    Theme Diva & Forum Moderator
    Posted 11 months ago #

  3. vtxyzzy
    Member
    Posted 11 months ago #

    The Custom Field Template plugin will add selected Custom Fields to the add/edit screens

Reply

You must log in to post.

About this Topic

Tags

No tags yet.