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 trialEric Huffman
12,472 PointsWordpress Navigation issues
My Wordpress site has a home page that, among other things, displays recent blog posts. That is working fine, and I have tested this several times by adding test posts. My site has an option for 'home' in the navigation, but when I click the link that says 'home' it takes me to a home page that doesn't have the recent posts limited. It appears to be taking me to the home page I created with a template titled 'page.php'. Does anyone know how I can correct this issue?
I will provide some important details:
I created 2 templates. One titled 'page.php' which is linked in the navigation, and I also have a 'front-page.php' template, which is loaded when I go to the site url.
The 'front-page.php' template, as well as the 'page.php' template are separate from home.php, which is strictly a page to list blog posts.
I do have a menu created for the site, titled 'Main Menu', which has the home page listed as 'Page' and not 'Custom'.
Under the 'Customize' option, the front page is selected to display posts.
Hopefully these details help provide some clarity for a person who is more experienced with Wordpress development.
1 Answer
Zac Gordon
Treehouse Guest TeacherYou will need to go into manage your menu and create a custom menu linked called "Home" and enter the URL of your site or "/" as the value for the link.
The Home link you currently have should be taken out and the page probably removed if you don't plan on having a static homepage.