Add an author bio to blog post
18
Transcript of Add an author bio to blog post
![Page 1: Add an author bio to blog post](https://reader034.fdocuments.in/reader034/viewer/2022042716/55a93a651a28ab430a8b48f2/html5/thumbnails/1.jpg)
![Page 2: Add an author bio to blog post](https://reader034.fdocuments.in/reader034/viewer/2022042716/55a93a651a28ab430a8b48f2/html5/thumbnails/2.jpg)
![Page 3: Add an author bio to blog post](https://reader034.fdocuments.in/reader034/viewer/2022042716/55a93a651a28ab430a8b48f2/html5/thumbnails/3.jpg)
![Page 4: Add an author bio to blog post](https://reader034.fdocuments.in/reader034/viewer/2022042716/55a93a651a28ab430a8b48f2/html5/thumbnails/4.jpg)
![Page 5: Add an author bio to blog post](https://reader034.fdocuments.in/reader034/viewer/2022042716/55a93a651a28ab430a8b48f2/html5/thumbnails/5.jpg)
Default meta info in admin..
![Page 6: Add an author bio to blog post](https://reader034.fdocuments.in/reader034/viewer/2022042716/55a93a651a28ab430a8b48f2/html5/thumbnails/6.jpg)
Lets add a filter...
add_filter('the_content', 'content_to_author_bio', 11);
![Page 7: Add an author bio to blog post](https://reader034.fdocuments.in/reader034/viewer/2022042716/55a93a651a28ab430a8b48f2/html5/thumbnails/7.jpg)
![Page 8: Add an author bio to blog post](https://reader034.fdocuments.in/reader034/viewer/2022042716/55a93a651a28ab430a8b48f2/html5/thumbnails/8.jpg)
So, What's the output ...
![Page 9: Add an author bio to blog post](https://reader034.fdocuments.in/reader034/viewer/2022042716/55a93a651a28ab430a8b48f2/html5/thumbnails/9.jpg)
Need to add new fields to save social links...
![Page 10: Add an author bio to blog post](https://reader034.fdocuments.in/reader034/viewer/2022042716/55a93a651a28ab430a8b48f2/html5/thumbnails/10.jpg)
Simple as return an array of variable name and title combination!
![Page 11: Add an author bio to blog post](https://reader034.fdocuments.in/reader034/viewer/2022042716/55a93a651a28ab430a8b48f2/html5/thumbnails/11.jpg)
![Page 12: Add an author bio to blog post](https://reader034.fdocuments.in/reader034/viewer/2022042716/55a93a651a28ab430a8b48f2/html5/thumbnails/12.jpg)
Lets get the user/author meta values ...
![Page 13: Add an author bio to blog post](https://reader034.fdocuments.in/reader034/viewer/2022042716/55a93a651a28ab430a8b48f2/html5/thumbnails/13.jpg)
![Page 14: Add an author bio to blog post](https://reader034.fdocuments.in/reader034/viewer/2022042716/55a93a651a28ab430a8b48f2/html5/thumbnails/14.jpg)
![Page 15: Add an author bio to blog post](https://reader034.fdocuments.in/reader034/viewer/2022042716/55a93a651a28ab430a8b48f2/html5/thumbnails/15.jpg)
Output...
![Page 16: Add an author bio to blog post](https://reader034.fdocuments.in/reader034/viewer/2022042716/55a93a651a28ab430a8b48f2/html5/thumbnails/16.jpg)
![Page 17: Add an author bio to blog post](https://reader034.fdocuments.in/reader034/viewer/2022042716/55a93a651a28ab430a8b48f2/html5/thumbnails/17.jpg)
Useful links
Scripts: http://z2a.co/2015/03/add-author-bio-with-social-links-to-blog-post/
Video Tutorial: https://www.youtube.com/watch?v=iV4mDjw3xqI