Codeless
  • Support Home
  • Themes
  • Support
  • WordPress Tutorials
    • How to Start a Blog
    • Best Website Builders
    • Best Small Business Hosting
    • Email Marketing Services
    • Cheap WordPress Hosting
  • Video Tutorials

Community Forums

Author Showing as Admin

authorpost
    • 6 years, 9 months ago fordebaker
      Participant

      Expired

      Hi,

      When publishing a blog post I have set the author as myself. My name shows on the blog category page but on the actual blog post the author is set to Admin. I have correctly selected myself as the author of the posts in the CMS. The Admin doesn’t exist so it leads to a 404 error. How do I rectify this so the post shows my name as the author?

      Thanks.

       

    • 6 years, 9 months ago Mirela
      Participant

      Hello,

      This is strange. i tested this and there is no problem.
      Please go to file includes/codeless_functions_blog.php, find this function: codeless_get_entry_meta_author()
      Replace all code with this:

      /**
       * Generate Post Entry Meta Author
       * 
       * @since 1.0.0
       */
      function codeless_get_entry_meta_author(){
          
          $author_name = get_the_author();
          
          // Sanitize to not show empty author on customize preview partial refresh
          if( empty( $author_name ) || is_customize_preview() )
              $author_name = __( 'admin', 'handel' );
          
          // Get the author name; wrap it in a link.
      	$author = sprintf(
      		/* translators: %s: post author */
      		__( '%s', 'handel' ),
      		'<span class="author"><a href="' . esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ) . '">' . $author_name . '</a></span>'
      	);
      	
      	return $author;
      }
      

      Please refresh posts and let us know.

      Best regards!

    • 6 years, 9 months ago fordebaker
      Participant

      Expired

      Hi,

       

      This doesn’t appear to have fixed the issue.  I’ve refreshed and updated posts but I’m still seeing Admin as the author.

      https://fordebaker.com/blog/when-and-why-you-should-recruit-a-marketing-agency-consultant-or-in-house-team/

       

    • 6 years, 9 months ago Mirela
      Participant

      Hello,

      Please add some valid wp credentials (with admin rights) in your profile data. So i can test this closely.
      Read this article for more information.

      Best regards!

    • 6 years, 9 months ago fordebaker
      Participant

      Expired

      Hi Mihaila,

       

      It appears to be working now.  Not sure what I did in the end but it worked!

       

      Thanks.

       

       

    • 6 years, 9 months ago Mirela
      Participant

      Great!

      I am assigning this ticket as resolved.
      Please open new ticket for future questions.

      Best regards!

Viewing 5 reply threads

You must be logged in to reply to this topic.

Login

Log In
Register

Renew Support

  • Renew Specular Support
  • Renew Tower Support
  • Renew Folie Support
  • Renew Handel Support
  • Renew June Support
  • Renew Picante Support
  • Renew Thype Support
  • Renew Regn Support

Search Forums

Forums

  • Bygge – Construction Theme
  • Converta – Software Theme
  • Folie – The WordPress Website Builder
  • Handel – Responsive Multi-Purpose Business Theme
  • June WooCommerce WordPress Theme
  • Livecast – Podcast Theme
  • Picante – Restaurant & Food WordPress Theme
  • Regn | Agency & Business WordPress Theme
  • Remake – Minimal Portfolio & Agency Theme
  • Specular – Multi-Purpose WordPress Theme
  • Suggest us Features
  • Tower – Business-Driven Multipurpose WP Theme
  • Vibrance – Photography Theme

Site Links

  • Support Policy
  • Specular Support Forum
  • Video Tutorials
  • Knowledge Base
  • Guides and Reviews

Useful Articles

  • Build a Website
  • Web Design & Development
  • Hosting
  • WordPress

Login

Log In
Register Lost Password