Guest Posts
[resolved] How to show the author custom fields in postmeta? (6 posts)

  1. jvitorcarvalho
    Posted 3 years ago #

    Hi, that's a wonderful plugin! Really thanks!

    I have one question. After added the custom fields for author, author-email, author-website how to show this information in the post meta?



  2. Babar
    Plugin Author

    Posted 3 years ago #

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

  3. Jlkyles
    Posted 2 years ago #

    Where in the theme would you paste this code?

  4. ddonnelly0f
    Posted 2 years ago #

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

  5. ottendesign
    Posted 2 years ago #

    I too!

  6. stuudio
    Posted 2 years ago #

    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

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Guest Posts
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic