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

Wordpress Archive Page from Sidebar Widget

I need to add a widget to my wordpress site that contains text and image. The text will be updated with new text/image on a regular basis. The tricky part is that each new entry will link to another site, but I want all the entries to automatically be added to an archive page that lives on my site, and I need to have a link to the archive page at bottom of widget. I'm not sure if I need a plugin or if this is even possible as a widget. Hope this makes sense. Any help would be great as I'm new to wordpress.

Thanks!

3 Answers

Zac Gordon
STAFF
Zac Gordon
Treehouse Guest Teacher

It sounds like you need to make this a custom post entry. Create an archive page that lists out what you need.

Then in your sidebar you could write a custom loop that pulls in whichever entry is appropriate to display. You could have a link to the archive page underneath it and if an external URL is one of the custom post fields you could also link out from your site if you need.

Thanks, Zac! I'm new to wordpress so I'll have to learn how to make a custom post entry. Any tutorials that you would recommend. BTW - I enjoy your videos.

john

Zac Gordon
Zac Gordon
Treehouse Guest Teacher

Yup, check out the How to Make a Website with WordPress course it has a whole section on custom posts and fields.

great, thanks