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

how to create and display featured content in wordpress?

how to create and display featured content in wordpress? how to create and display featured content in wordpress? I want to create an featured content section in my theme but i don't want to use any plugin.

1 Answer

Hi Ranish,

You could use custom post types and a custom query that would display featured content as you wish, there is a course that goes through this very well which is called, Wordpress Theme Development.

However I will ask what your reasons are for not wanting to use a Plugin is as there a 2 great ones that Zac recommends and they will make this task extremely easy!

Craig

Thanks Craig for your kind response to my question. The reason for not using a plugin is i am developing this theme for commercial purpose.

If I was in your position and would looking to do that I would set up a local wp site, download the plugins "Custom Post Type UI" and "Advanced Custom Fields" to then be able to go through there code in the plugin files and see what kind of code is used..

I like the thought of a them already set up to give you a featured post section!