Wordpress and Webdesign Forum go41 » WordPress Code Snippets

  1. Lucky500
    Member

    Hello Folks,

    I recently found a nice piece of code to add multiple authors, but I delete by accident!!! and perhaps you can help me...

    I downloaded Custom Field template...

    The author value is already set on the plugin

    the only thing that I need is the piece of code that I have to post on single.php that will allow me to pull the author's name.

    Thanks

    Picture of plugin

    Posted 1 year ago #
  2. there is a readme.txt file in the plugin folder
    it says:
    Use the cft shortcode. In the edit post, write down just '[cft]'.
    and:
    Auto Hook of the_content() in the option page of this plugin

    Posted 1 year ago #
  3. Lucky500
    Member

    Thanks,

    this is the actual piece of code, if someone is having the same problem.

    <?php if( get_post_meta($post->ID, 'Author', true) ) : ?>
    <span>Author: <?php echo get_post_meta(get_the_ID(), 'Author', true); ?></span>

    just add that to post.php by the date and you will be able to have the author name appear...

    Posted 1 year ago #

RSS feed for this topic

Reply

You must log in to post.

Join us! or log in (lost password?):