Support ForumDisplay blog author – Support Forum https://support.ishyoboy.com/forums/topic/display-blog-author/feed/ Mon, 06 May 2024 22:54:50 +0200 http://bbpress.org/?v=2.5.12-6148 en-US https://support.ishyoboy.com/forums/topic/display-blog-author/#post-903 <![CDATA[Display blog author]]> https://support.ishyoboy.com/forums/topic/display-blog-author/#post-903 Tue, 15 Oct 2013 17:20:15 +0000 alofstrom Hi,
I have been through the documentation as well as the WordPress.org site. I’m trying to display the blog author at the top of each blog post. Currently, the information displayed is the date, # comments and categories.

Thanks,
Amy

]]>
https://support.ishyoboy.com/forums/topic/display-blog-author/#post-916 <![CDATA[Reply To: Display blog author]]> https://support.ishyoboy.com/forums/topic/display-blog-author/#post-916 Tue, 15 Oct 2013 22:02:40 +0000 IshYoBoy Hey Amy,

if you open all “content-post-*.php” (wp-content\themes\minicorp\content-post-audio.php, … ) files you will find the author field being commented out. Just un-comment it in every file.

change all

to

<span class="icon-pencil-1">by <?php the_author(); ?></span>

You might want to move it to change the order of the date, author, categories, comments.

To avoid your changes being overwritten and removed with future updates, you can use the child theme from the ZIP file from ThemeForest, activate it and copy the mentioned files from the parent theme into the child theme and then do the changes.

Cheers

A 5 star rating is always a great motivation for us if you are happy with our theme or support!
Themeforest | MojoMarketplace | Creative Market

]]>
https://support.ishyoboy.com/forums/topic/display-blog-author/#post-928 <![CDATA[Reply To: Display blog author]]> https://support.ishyoboy.com/forums/topic/display-blog-author/#post-928 Wed, 16 Oct 2013 14:49:34 +0000 alofstrom When I un-comment the code , I get an error message when I refresh the blog post. The error message “Parse error: syntax error, unexpected ‘<‘ in /home3/finchone/public_html/wp-content/themes/minicorp/content-post-standard.php on line 14”

I have taken out the “<” but nothing seems to work. Here is the code for the blog post details that is causing the error. I only removed the “/* */” from the code – not sure why this isn’t working properly.

<div class=”blog-post-details”>
<?php
<span class=”icon-pencil-1″>by <?php the_author(); ?></span>
?>
<span class=”icon-calendar”><?php _e( ‘on’ , ‘ishyoboy’ ); ?> <?php the_time( get_option( ‘date_format’ ) ); ?></span>
<?php if ( has_category() ) : ?>
<span class=”icon-folder”><?php the_category(‘, ‘); ?></span>
<?php endif; ?>
<?php if ( has_tag() ) : ?>
<span class=”icon-tags”><?php _e( ‘and’ , ‘ishyoboy’ ); ?> <?php the_tags(null, ‘, ‘); ?></span>
<?php endif; ?>
<span class=”icon-chat-1″><?php _e( ‘with’ , ‘ishyoboy’ ); ?> #comments”><?php comments_number( __(‘0 comments’, ‘ishyoboy’), __(‘1 comment’, ‘ishyoboy’), __(‘% comments’, ‘ishyoboy’) ); ?></span>
</div>

]]>
https://support.ishyoboy.com/forums/topic/display-blog-author/#post-936 <![CDATA[Reply To: Display blog author]]> https://support.ishyoboy.com/forums/topic/display-blog-author/#post-936 Wed, 16 Oct 2013 16:32:51 +0000 IshYoBoy Hey,

As mentioned in our original reply you need to change the 3 lines to 1. So remove the:

<?php

then remove the comments:

/* */

then remove the:

?>

Please see again the original reply.
Cheers

A 5 star rating is always a great motivation for us if you are happy with our theme or support!
Themeforest | MojoMarketplace | Creative Market

]]>
https://support.ishyoboy.com/forums/topic/display-blog-author/#post-939 <![CDATA[Reply To: Display blog author]]> https://support.ishyoboy.com/forums/topic/display-blog-author/#post-939 Wed, 16 Oct 2013 19:08:35 +0000 alofstrom Thanks, that worked!

]]>
https://support.ishyoboy.com/forums/topic/display-blog-author/#post-940 <![CDATA[Reply To: Display blog author]]> https://support.ishyoboy.com/forums/topic/display-blog-author/#post-940 Wed, 16 Oct 2013 19:31:01 +0000 IshYoBoy Perfect! :)

A 5 star rating is always a great motivation for us if you are happy with our theme or support!
Themeforest | MojoMarketplace | Creative Market

]]>