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

PHP How to Build a WordPress Theme WordPress Theme Functions Displaying Custom Posts and Fields in a Template

ISABEL SAEZ PEREZ
ISABEL SAEZ PEREZ
4,789 Points

It doesn't work as should be

Hi dear,

I went through these videos and the last one that I've watched "Displaying Custom Posts and Fields in a Template" the result of my work is not the same as should be. Basically In the page work doesn't appear anything. I downloaded the code from the website and I copied it in to my fields, but still not doing anything.

I might have problems with Wordpress, I had to install it again and I deleted all of the fields and redone it again. When I installed again the wordpress ,the system recognise everything that I've done before. I deleted the old theme, and have done it again.

Many thanks,

Isabel

4 Answers

Andrew Shook
Andrew Shook
31,709 Points

Isabel, If you want a fresh install of wordpress then you need to delete the database. Almost all setting, and all content, fields, and posts are saved in the database. Be aware though that if you delete the database you will lose all the work you have done that is not hard coded into the site's plugins or theme.

ISABEL SAEZ PEREZ
ISABEL SAEZ PEREZ
4,789 Points

Thank Andrew for you quick answer. I'll try that many thanks.

ISABEL SAEZ PEREZ
ISABEL SAEZ PEREZ
4,789 Points

Thank Andrew for you quick answer. I'll try that many thanks.

ISABEL SAEZ PEREZ
ISABEL SAEZ PEREZ
4,789 Points

Hi again, I just did what Andrew said. I deleted the database I started from the very beginning but still can't see anything in the work page. I downloaded the fields from this project and copy in the folder, don't know what could it be...