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

allisongrayce.com - posts/pages not showing up

Hi

I'm currently in the middle of learning Customize wordpress theme.

When I restore the project file for allisongrayce.com, and try to go to: blog, about, work, contact link from the front page, none shows up.

I also tried to create a brand new post from the admin site. When visiting it, I get the same error: Not Found

The requested URL /allisongrayce.com/fourth-blog/ was not found on this server.

The URL that I tried to visit is: http://localhost/allisongrayce.com/fourth-blog/

The front page itself works fine.

Any help appreciated.

6 Answers

Somehow when I install a fresh wordpress and run the sql queries from the backup. None of the data is read. WP decides to create a brand new instance.

Anyway, here's a resolution if one likes to use the zip file instead of installing brand new WP.

Using WAMP I clicked on its icon in the task bar then selected

apache>apache module before clicking on rewrite_module in the drop down list.

I'm not sure what it does behind the scene...but it works.

My bad, let me try that again.

Here's the possible reasons it isn't going right:

1) the loops aren't set up properly. 2) the header and footer aren't set up properly. 3) your permalinks aren't being accurately followed (did you make one of the permalinks "fourth-blog"?) 4) the pages/posts haven't been added to your database from the WP Admin area.

I hope that helps.

Thanks Drew for the speedy response.

This is what I have exactly done:

  1. Setup a WAMP
  2. Create a database wp_portfolio
  3. Download the project zip file from treehouse
  4. Exctract the project zip file to the www directory renaming wp-theme-development-stage-04 to allisongrayce.com
  5. Run the sql file inside the folder using phpMyAdmin

I have confirmed that both WordPress address and Site Address are pointing to: http://localhost/allisongrayce.com

What else is missing?

So you never installed Wordpress? You need to do that first. That file then needs to be dropped in the wp-content/themes folder and then activated in your WP Admin panel (inside Appearance) to bring it live.

Here's the short Treehouse tutorial (and a badge) on how to install Wordpress on your local machine:

http://teamtreehouse.com/library/local-wordpress-development

I have installed wordpress before. Since the zip file already contains wordpress, I am using that instead. The file is generated from the BackupWordpress plugin that includes the sql as well as the wordpress itself.

I'm just curious what I need to tweak instead of installing a brand new wordpress.

The front page is working which means that calling front-page.php is not an issue. However blog, about, work, contact link are all broken links.

If Wordpress is properly installed, then what you've downloaded should be the theme folder, and in that case it just needs to be dropped into wp-content/themes.

And why would you not reinstall WP? Seriously, it takes all of 5 minutes including the time to select all the files and wipe them out, download and move the folder, creating the database, and running through the install process. In all the time we've been exchanging these messages, you'd be done by now and moving on to greater adventures. :)