WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. jvitorcarvalho
    Member
    Posted 1 year 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?

    Thanks

    http://wordpress.org/extend/plugins/guest-posts/

  2. Babar
    Member
    Plugin Author

    Posted 1 year ago #

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

  3. Jlkyles
    Member
    Posted 11 months ago #

    Where in the theme would you paste this code?

  4. ddonnelly0f
    Member
    Posted 8 months ago #

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

  5. ottendesign
    Member
    Posted 7 months ago #

    I too!

  6. stuudio
    Member
    Posted 6 months 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

About this Topic