Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Babar

    (@ibabar)

    You can use get_post_meta() in your theme to show those info on your site.

    Where in the theme would you paste this code?

    ddonnelly0f

    (@ddonnelly0f)

    I would like to know the answer to this as well.

    I too!

    I am in a similar problem.
    I must get $key="author" and place it before the content. 
    
    I have managed to hack this together:
    
    At the moment, it looks like this: 
    
    		<div class="entry-content">
    
    		<?php $key="author"; echo get_post_meta($post->ID, $key, true) . ( ' writes:'); ?>
    			<?php the_content(); ?>
    			<?php wp_link_pages( array( 'before' => '<p class="page-links">' . __( 'Pages:', 'path' ), 'after' => '</p>' ) ); ?>
    		</div><!-- .entry-content -->

    Problem is that the result looks wrong because the name (Name) form custom field “author” is not on the same line with the content.

    It looks like this

    Name writes:

    Content blaa blaa

    What I need, is:

    Name writes: Content blaa blaa

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘How to show the author custom fields in postmeta?’ is closed to new replies.