{"id":5409,"date":"2008-11-03T06:53:12","date_gmt":"2008-11-03T13:53:12","guid":{"rendered":"http:\/\/www.bloodhoundrealty.com\/BloodhoundBlog\/?p=5409"},"modified":"2008-11-06T05:59:50","modified_gmt":"2008-11-06T12:59:50","slug":"prequel-to-speaking-in-tongues-displaying-author-images-in-wordpress","status":"publish","type":"post","link":"https:\/\/www.bloodhoundrealty.com\/BloodhoundBlog\/5409\/prequel-to-speaking-in-tongues-displaying-author-images-in-wordpress\/","title":{"rendered":"Prequel to Speaking in Tongues:  Displaying Author Images in WordPress"},"content":{"rendered":"<p>Several months ago, Greg described this process in <a rel=\"bookmark\" href=\"http:\/\/www.bloodhoundrealty.com\/BloodhoundBlog\/?p=3305\">Project  Bloodhound speaking in tongues: To whom am I speaking?<\/a><\/p>\n<p>At the time, I had no\u00a0need to implement author images in a WordPress  multi-author blog, (and I already knew the technique for TypePad), so I didn&#8217;t  work with the process until just today.<\/p>\n<p>As I set up what will become a company blog for our incoming agents, I  realized that the average WordPress user might need a little more background  information to put Greg&#8217;s code to use.<\/p>\n<p>First of all, you need to find all your authors&#8217; ID numbers.\u00a0 Unfortunately  current versions of WordPress do not show author ID numbers.\u00a0 The easy solution  for me was to download the <a href=\"http:\/\/wordpress.org\/extend\/plugins\/reveal-ids-for-wp-admin-25\/\">Reveal  IDs for WP Admin <\/a>plugin.<\/p>\n<p>Once the Reveal IDs plugin is activated, when you go to the Users  page,\u00a0you&#8217;ll see each author&#8217;s ID number displayed beside their username.\u00a0  All ID numbers, that is, except your own.\u00a0 The only way to see your own ID  number is to create a new separate admin username and login, then login as that new  identity, and find your old self on the list.<\/p>\n<p>Next step:\u00a0 Obtain images of each author.\u00a0 Resize each image (I decided on 52  pixels in height, and 50 pixels in width as appropriate for the design I am  using.)\u00a0 Each image must be named simply by the author ID number.\u00a0 For instance,  my lovely image here on Bloodhound Blog is titled 34.jpg.<\/p>\n<p>Upload all the newly resized and newly renamed images to your blog&#8217;s root  directory.<\/p>\n<p>Now you are ready to rock and roll.<\/p>\n<p>Open your Main Index Template file (index.php)<\/p>\n<p>I simplified Greg&#8217;s code for now to only display the author&#8217;s image and  name<\/p>\n<blockquote><p><strong><em>&lt;img src=&#8221;http:\/\/www.bobtaylorproperties.com\/blog\/&lt;?php  the_author_ID(); ?&gt;.jpg&#8221; height=&#8221;52&#8243; width=&#8221;50&#8243; align=&#8221;left&#8221;  hspace=&#8221;10&#8243;&gt;<br \/>\nPosted by &lt;?php the_author() ?&gt;  &lt;br&gt;<\/em><\/strong><\/p><\/blockquote>\n<p>And I\u00a0placed it under the PHP code that inserts the post title.\u00a0 Here&#8217;s the  complete snippet:<\/p>\n<blockquote><p><em>&lt;?php if (have_posts()) : while (have_posts()) : the_post();  ?&gt;<br \/>\n&lt;div class=&#8221;entry&#8221;&gt;<\/em><\/p>\n<p><em>&lt;h1&gt;&lt;a href=&#8221;&lt;?php the_permalink() ?&gt;&#8221; rel=&#8221;bookmark&#8221;  title=&#8221;&lt;?php the_title(); ?&gt;&#8221;&gt;&lt;?php the_title();  ?&gt;&lt;\/a&gt;&lt;\/h1&gt; <\/em><\/p>\n<p><em><strong>&lt;img src=&#8221;<\/strong><\/em><em><strong>http:\/\/www.bobtaylorproperties.com\/blog\/&lt;?php<\/strong><\/em><em><strong> the_author_ID(); ?&gt;.jpg&#8221; height=&#8221;52&#8243; width=&#8221;50&#8243; align=&#8221;left&#8221;  <a href=\"https:\/\/www.bloodhoundrealty.com\/BloodhoundBlog\/5409\/prequel-to-speaking-in-tongues-displaying-author-images-in-wordpress\/#more-5409\" class=\"more-link\">Read more<\/a><\/strong><\/em><\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>Several months ago, Greg described this process in Project Bloodhound speaking in tongues: To whom am I speaking? At the time, I had no\u00a0need to implement author images in a WordPress multi-author blog, (and I already knew the technique for TypePad), so I didn&#8217;t work with the process until just today. As I set up [&hellip;]<\/p>\n","protected":false},"author":34,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_crdt_document":"","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,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[3,26,175,16],"tags":[],"class_list":{"0":"post-5409","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"hentry","6":"category-blogging","7":"category-lending","8":"category-project-blooodhound","9":"category-weblogging-101","11":"no-featured-image"},"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":1224,"url":"https:\/\/www.bloodhoundrealty.com\/BloodhoundBlog\/1224\/how-to-make-google-your-weblogs-best-friend\/","url_meta":{"origin":5409,"position":0},"title":"Project Bloodhound: How to make Google your weblog&#8217;s best friend","author":"Greg Swann","date":"June 27, 2008","format":false,"excerpt":"[This is one of the all-time most popular posts on BloodhoundBlog. I'm reprising it for Project Bloodhound, first because it's a nice leveraged SEO solution, and second because it's a painless introduction to customizing the PHP in WordPress. --GSS] \u00a0Who can probe all the mysteries of Google? Not me, and\u2026","rel":"","context":"In &quot;Blogging&quot;","block_context":{"text":"Blogging","link":"https:\/\/www.bloodhoundrealty.com\/BloodhoundBlog\/category\/blogging\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":2631,"url":"https:\/\/www.bloodhoundrealty.com\/BloodhoundBlog\/2631\/speaking-in-tongues-geek-humor-idiomatic-expressions-in-code\/","url_meta":{"origin":5409,"position":1},"title":"Speaking in tongues: Geek humor &#8212; idiomatic expressions in code","author":"Greg Swann","date":"February 21, 2008","format":false,"excerpt":"From Google Blogoscoped, for geekFun: A series of conversational idioms expressed humorously in PHP and C code. My favorite? if ( ape.inLineOfSight(it.x, it.y) ) ape.do(it);What is it? Teri was talking about it last night: Monkey see, monkey do. Technorati Tags: blogging, technology","rel":"","context":"In &quot;Blogging&quot;","block_context":{"text":"Blogging","link":"https:\/\/www.bloodhoundrealty.com\/BloodhoundBlog\/category\/blogging\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":174,"url":"https:\/\/www.bloodhoundrealty.com\/BloodhoundBlog\/174\/how-to-make-fast-flexible-web-pages\/","url_meta":{"origin":5409,"position":2},"title":"How to make fast, flexible web pages . . .","author":"Greg Swann","date":"August 4, 2006","format":false,"excerpt":"Sellsius\u00b0 has a big bag of how-to's but I'm from Missouri. I like how-to articles that tell exactly how to do something. One from me: How to make fast, flexible web pages. This is Realtor 2.0 stuff: Full-service Realtors who plan to compete need to learn how to punch out\u2026","rel":"","context":"In &quot;Blogging&quot;","block_context":{"text":"Blogging","link":"https:\/\/www.bloodhoundrealty.com\/BloodhoundBlog\/category\/blogging\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":2433,"url":"https:\/\/www.bloodhoundrealty.com\/BloodhoundBlog\/2433\/speaking-in-tongues-presentable-php-in-wordpress\/","url_meta":{"origin":5409,"position":3},"title":"Speaking in tongues: Presentable PHP in WordPress","author":"Greg Swann","date":"December 27, 2007","format":false,"excerpt":"In the coming days, I plan to take up the idea of PHP for non-programmers, helping you tap the power of PHP's dynamic text processing without learning (much) actual coding. The problem is that illustrating HTML or PHP in WordPress is always a problem. Why? Because WordPress eats code for\u2026","rel":"","context":"In &quot;Blogging&quot;","block_context":{"text":"Blogging","link":"https:\/\/www.bloodhoundrealty.com\/BloodhoundBlog\/category\/blogging\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":5780,"url":"https:\/\/www.bloodhoundrealty.com\/BloodhoundBlog\/5780\/speaking-in-tongues-using-the-power-of-a-robust-text-editor-to-code-html-pages-with-dispatch\/","url_meta":{"origin":5409,"position":4},"title":"Speaking in tongues: Using the power of a robust text editor to code HTML pages with dispatch","author":"Greg Swann","date":"November 23, 2008","format":false,"excerpt":"Linked below is a short screencast on how I use the text editor known as TextWrangler to wrangle text into usable formats. This particular episode illustrates how I create coded HTML from my weekly Arizona Republic column. In future screencasts, I'll want to illustrate more arcane ideas about deploying robust\u2026","rel":"","context":"In &quot;Flourishing&quot;","block_context":{"text":"Flourishing","link":"https:\/\/www.bloodhoundrealty.com\/BloodhoundBlog\/category\/flourishing\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":2470,"url":"https:\/\/www.bloodhoundrealty.com\/BloodhoundBlog\/2470\/speaking-in-tongues-a-step-by-step-guide-to-speaking-in-web-sites\/","url_meta":{"origin":5409,"position":5},"title":"Speaking in tongues: A step-by-step guide to speaking in web sites","author":"Greg Swann","date":"January 4, 2008","format":false,"excerpt":"I never know what other people don't see. Cathleen didn't know that BloodhoundBlog and DistinctivePhoenix.com are based on the same WordPress template. Likewise for Real Estate Weblogging 101 and The Phoenix Real Estate Technology Exchange. She could see the differences, but not the similarities, not until I noodged her to\u2026","rel":"","context":"In &quot;Blogging&quot;","block_context":{"text":"Blogging","link":"https:\/\/www.bloodhoundrealty.com\/BloodhoundBlog\/category\/blogging\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"https:\/\/www.bloodhoundrealty.com\/BloodhoundBlog\/wp-json\/wp\/v2\/posts\/5409","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.bloodhoundrealty.com\/BloodhoundBlog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.bloodhoundrealty.com\/BloodhoundBlog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.bloodhoundrealty.com\/BloodhoundBlog\/wp-json\/wp\/v2\/users\/34"}],"replies":[{"embeddable":true,"href":"https:\/\/www.bloodhoundrealty.com\/BloodhoundBlog\/wp-json\/wp\/v2\/comments?post=5409"}],"version-history":[{"count":12,"href":"https:\/\/www.bloodhoundrealty.com\/BloodhoundBlog\/wp-json\/wp\/v2\/posts\/5409\/revisions"}],"predecessor-version":[{"id":5454,"href":"https:\/\/www.bloodhoundrealty.com\/BloodhoundBlog\/wp-json\/wp\/v2\/posts\/5409\/revisions\/5454"}],"wp:attachment":[{"href":"https:\/\/www.bloodhoundrealty.com\/BloodhoundBlog\/wp-json\/wp\/v2\/media?parent=5409"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.bloodhoundrealty.com\/BloodhoundBlog\/wp-json\/wp\/v2\/categories?post=5409"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.bloodhoundrealty.com\/BloodhoundBlog\/wp-json\/wp\/v2\/tags?post=5409"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}