{"id":104,"date":"2010-05-11T19:11:34","date_gmt":"2010-05-11T13:41:34","guid":{"rendered":"http:\/\/JitendraZaa.com\/blog\/?p=104"},"modified":"2010-05-11T19:11:34","modified_gmt":"2010-05-11T13:41:34","slug":"display-author-name-in-wordpress","status":"publish","type":"post","link":"https:\/\/www.jitendrazaa.com\/blog\/others\/tips\/display-author-name-in-wordpress\/","title":{"rendered":"Display author name in wordpress"},"content":{"rendered":"<p>Look in the default theme&#8217;s index.php file for the proper template tag:<\/p>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">\n\n&lt;code&gt;&lt;?php the_author() ?&gt;&lt;\/code&gt;\n\n<\/pre>\n<p>and a good place to put it.<\/p>\n<h2>Display Author&#8217;s &#8216;Public&#8217; Name<\/h2>\n<p>Displays the value in the user&#8217;s\u00a0Display name publicly as\u00a0field.<\/p>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">\n&lt;p&gt;This post was written by &lt;?php the_author();\u00a0?&gt;&lt;\/p&gt;\n<\/pre>\n<h2>Get Author link<\/h2>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">\n\n&lt;p&gt;Written by:\n&lt;?php echo get_the_author_link();\u00a0?&gt;&lt;\/p&gt;\n<\/pre>\n<h2>The Author&#8217;s Post<\/h2>\n<div>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">\n&lt;p&gt;&lt;?php the_author();\u00a0?&gt; has blogged &lt;?php the_author_posts();\u00a0?&gt;&lt;\/pre&gt;\n&lt;\/div&gt;\n&lt;pre&gt;posts&lt;\/p&gt;\n<\/pre>\n<h2>The Author&#8217;s Post Link<\/h2>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">\n&lt;p&gt;Other posts by &lt;?php the_author_posts_link();\u00a0?&gt;&lt;\/p&gt;\n<\/pre>\n<p>for more info check below URL<br \/>\n<a href=\"http:\/\/codex.wordpress.org\/Template_Tags\/the_author\">http:\/\/codex.wordpress.org\/Template_Tags\/the_author<\/a><\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Look in the default theme&#8217;s index.php file for the proper template tag: &lt;code&gt;&lt;?php the_author() ?&gt;&lt;\/code&gt; and a good place to put it. Display Author&#8217;s &#8216;Public&#8217; Name Displays the value in the user&#8217;s\u00a0Display name publicly as\u00a0field. &lt;p&gt;This post was written by &lt;?php the_author();\u00a0?&gt;&lt;\/p&gt; Get Author link &lt;p&gt;Written by: &lt;?php echo get_the_author_link();\u00a0?&gt;&lt;\/p&gt; The Author&#8217;s Post &lt;p&gt;&lt;?php the_author();\u00a0?&gt; [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"advanced_seo_description":"","jetpack_seo_html_title":"","jetpack_seo_noindex":false,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"jz_research_post":"","_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[17],"tags":[155,223],"class_list":["post-104","post","type-post","status-publish","format-standard","hentry","category-tips","tag-php","tag-wordpress"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":2386,"url":"https:\/\/www.jitendrazaa.com\/blog\/webtech\/cpanel-filezilla-ftp-all-code-converted-in-single-line\/","url_meta":{"origin":104,"position":0},"title":"Cpanel &#8211; FileZilla FTP &#8211; All code converted in single line","author":"Jitendra","date":"August 12, 2011","format":false,"excerpt":"While transferring the php, html or javascript file using filezilla ftp client to the cpanel - all the codes converted into single line","rel":"","context":"In &quot;Web Technology&quot;","block_context":{"text":"Web Technology","link":"https:\/\/www.jitendrazaa.com\/blog\/category\/webtech\/"},"img":{"alt_text":"FileZilla Settings","src":"https:\/\/i0.wp.com\/jitendrazaa.com\/blog\/wp-content\/uploads\/2011\/08\/FileZilla-Settings.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":1851,"url":"https:\/\/www.jitendrazaa.com\/blog\/java\/struts\/dynamic-results-in-struts-2\/","url_meta":{"origin":104,"position":1},"title":"Dynamic Results in Struts 2","author":"Jitendra","date":"March 30, 2011","format":false,"excerpt":"Example and sourcecode of creating Dynamic Results in Struts 2","rel":"","context":"In &quot;Struts&quot;","block_context":{"text":"Struts","link":"https:\/\/www.jitendrazaa.com\/blog\/category\/java\/struts\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":2309,"url":"https:\/\/www.jitendrazaa.com\/blog\/webtech\/wordpress-error-resolved-problem-while-switching-from-html-to-visual-after-embedding-the-code\/","url_meta":{"origin":104,"position":2},"title":"WordPress error resolved &#8211; problem while switching from HTML to Visual editor after embedding the code","author":"Jitendra","date":"July 29, 2011","format":false,"excerpt":"Wordpress error resolved - problem while switching from HTML to Visual editor after embedding the code","rel":"","context":"In &quot;Web Technology&quot;","block_context":{"text":"Web Technology","link":"https:\/\/www.jitendrazaa.com\/blog\/category\/webtech\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1756,"url":"https:\/\/www.jitendrazaa.com\/blog\/java\/searching-xml-file-using-dom-parser-of-jaxp\/","url_meta":{"origin":104,"position":3},"title":"Searching XML File using DOM Parser of JAXP","author":"Jitendra","date":"March 22, 2011","format":false,"excerpt":"Example of Searching XML File using DOM Parser of JAXP","rel":"","context":"In &quot;JAVA&quot;","block_context":{"text":"JAVA","link":"https:\/\/www.jitendrazaa.com\/blog\/category\/java\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1029,"url":"https:\/\/www.jitendrazaa.com\/blog\/microsoft\/logging-made-easy-in-net-log-4-net\/","url_meta":{"origin":104,"position":4},"title":"Logging made easy in .NET &#8211; log 4 net","author":"Jitendra","date":"September 30, 2010","format":false,"excerpt":"How to use the log 4 net in .Net application. Example, demonstration and sourcecode","rel":"","context":"In &quot;c#&quot;","block_context":{"text":"c#","link":"https:\/\/www.jitendrazaa.com\/blog\/category\/microsoft\/csharp\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":2903,"url":"https:\/\/www.jitendrazaa.com\/blog\/salesforce\/salesforce-toolkit-for-php\/","url_meta":{"origin":104,"position":5},"title":"Salesforce Toolkit for PHP","author":"Jitendra","date":"June 7, 2012","format":false,"excerpt":"Example of using PHP toolkit in Salesforce with Sample code","rel":"","context":"In &quot;Force.com&quot;","block_context":{"text":"Force.com","link":"https:\/\/www.jitendrazaa.com\/blog\/category\/salesforce\/force-com\/"},"img":{"alt_text":"force.com toolkit for PHP toolkit","src":"https:\/\/i0.wp.com\/jitendrazaa.com\/blog\/wp-content\/uploads\/2012\/06\/force.com-toolkit-for-PHP-toolkit.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/jitendrazaa.com\/blog\/wp-content\/uploads\/2012\/06\/force.com-toolkit-for-PHP-toolkit.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/jitendrazaa.com\/blog\/wp-content\/uploads\/2012\/06\/force.com-toolkit-for-PHP-toolkit.png?resize=525%2C300&ssl=1 1.5x"},"classes":[]}],"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/www.jitendrazaa.com\/blog\/wp-json\/wp\/v2\/posts\/104","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.jitendrazaa.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.jitendrazaa.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.jitendrazaa.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.jitendrazaa.com\/blog\/wp-json\/wp\/v2\/comments?post=104"}],"version-history":[{"count":0,"href":"https:\/\/www.jitendrazaa.com\/blog\/wp-json\/wp\/v2\/posts\/104\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.jitendrazaa.com\/blog\/wp-json\/wp\/v2\/media?parent=104"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.jitendrazaa.com\/blog\/wp-json\/wp\/v2\/categories?post=104"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.jitendrazaa.com\/blog\/wp-json\/wp\/v2\/tags?post=104"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}