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

Basel Razouk
Basel Razouk
14,046 Points

PHP/HTML/CSS to Wordpress

I recently built a website as a personal project whilst learning the fundamentals of HTML/CSS/PHP. Again for the sake of learning, I've decided to translate this into a Wordpress site. I've managed to do this fairly successfully for the majority of the site, and have been able to use some plugins in place of some of the coded php functions I had written.

My question is, how would I transfer some of the functions etc built using php into Wordpress, where there is no obvious plugin to replace them? For example, I had introduced a small directory page into the site where a number of categories were listed on the left and when any of these was clicked this would search a specific field in my database entries and produce the results to the right. In general how could such functions be replicated in Wordpress? what are the best practices ?

Thanks in Advance.

1 Answer

Matt Campbell
Matt Campbell
9,767 Points

To do the above, you'd just move all your database entries into individual posts, assign them categories and then list the categories in a div or sidebar positioned where you want. Then use Ajax to get the pages but traditional loading would work fine also.