Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

WordPress

Social Media and Blog Feed on a Portfolio WordPress site

Hi,

I would like to bring onto my portfolio site which I'll be creating using WordPress, a feed to my social profiles on Facebook and Twitter and my blog all combined.

Ideally, a div section on my homepage which has blog excerpts and a thumbnail of my featured image from the blog post it relates to (which would be different per blog post).

Then I would also like it so it pulled my Twitter feed, my Facebook Business Page and my own personal Facebook status updates and it putting an icon for each next to whether it is Twitter or Facebook.

If at all possible also include how long ago I posted content and where I posted it from if I'm on the move.

Is this possible in WordPress or PHP or even jQuery?

Many Thanks.

If anyone wants me to try and explain it more, please message me.

Thanks once again.

Fred Gough (FG Web Developers)

3 Answers

Alexander Sobieski
Alexander Sobieski
6,555 Points

YES!

Your blog post excerpts are no problem at all... most themes give you that option, but it's easy to code (if you know WP).

As for the social stuff, there are a couple ways:

easy/intermediate create a dynamic sidebar (widget area) for your WP template, and find some social widgets that pull that info. Drop them in... done. You can usually use the "inspect element" (right-click in your browser) to find the CSS id/class of elements, and you can modify the CSS to make it look how you want.

harder Learn Wordpress/php/CSS/Javascript, get familiar with the Facebook and Twitter API, and custom-code yourself a plug-in, or just add all the code to the functions.php file in your Wordpress theme.

PRO: feather in your cap, and you can make it exactly how you want Con: it will take a while to learn/do

--but once you have done it, you're a pro and can take-on anything!

Ok. Thanks for your advice. I'll certainly try the harder approach as I enjoy a challenge and as this will be my portfolio site I want it to show I'm capable of doing challenges.