By default, author information is displayed at the end of post content on single post or article page. It shows author name with URL pointing to author profile URL (format like basicwp.com/author/admin). Few users may want to remove this author URL or show a different author URL (like that of different about page of the author). This can be easily implemented in Genesis WordPress theme framework.

Change author URL from post info section

Open funtions.php file section and add following code to modify author URL.

[cc]
/** Customize the post info function */
add_filter( ‘genesis_post_info’, ‘post_info_filter’ );
function post_info_filter($post_info) {
if (!is_page()) {
$post_info = ‘Posted on [post_date] Written by Editor [post_comments] [post_edit]’;
return $post_info;
}}
[/cc]

Above you can manually edit author name “Editor” and author URL “basicwp.com” as per your requirement.

Remove author URL linking from Genesis post info

If you only want to display author name without an active and click-able url to author profile, then add following code to functions.php file.

[cc]
/** Customize the post info function */
add_filter( ‘genesis_post_info’, ‘post_info_filter’ );
function post_info_filter($post_info) {
if (!is_page()) {
$post_info = ‘Posted on [post_date] Written by [post_author] [post_comments] [post_edit]’;
return $post_info;
}}
[/cc]

Above code removes hyperlinking of author name to its respective author profile URL. It simply display author name without click-able author profile url.

Davinder Singh Kainth

A digital creator with 15+ years of experience in Website Design, Development, SEO, and Content Creation to Podcasting at SmartWebCreators.com with the motto of "Be Smart, Keep Creating". A coach, consultant, and your dear geek friend ❖

3 Comments

  1. Lou on December 22, 2012 at 1:19 pm

    Hmm it appears like your website ate my first comment (it was extremely long) so I guess

    I’ll just sum it up what I wrote and say, I’m thoroughly
    enjoying your blog. I as well am an

    aspiring blog blogger but I’m still new to the whole thing. Do you have any tips for rookie blog

    writers? I’d certainly appreciate it.

  2. atiqur rahman on March 26, 2013 at 10:49 pm

    i like your blog. because your blog is very informative. i get here some fantastic genesis themes tutorial. thanks for shearing all those posts with us.

  3. How To Start a Blog on September 29, 2014 at 6:35 pm

    Thanks, i found it now, i am using the Genesis Simple Edits plugin which has the short code you have above.

Leave a Comment