Glitch in Attempting to Display a Single Post on Front/Home Page.
-
Hello –
My objective is to display the SINGLE, most recent blog post on my front page while displaying all entries on a dedicated “Blog” page.
I have attempted to copy single post.php from my theme into my “Home” page using the exec php plugin. I am using a static front page with my “blog page” separate.
To specify a single entry in the php script entered, I added the following query above The Loop.
‘<?php
get_header();
query_posts(‘posts_per_page=1’);
?>’The front page now displays the most recent SINGLE entry in single post format which is my preference.
The PROBLEM is that the content and title of the entry appear in duplicate at the bottom of the page without formatting. I can’t find the php problem to eliminate this redundancy. So close!!!
You can view my issue at my site .
I am not a technology professional and I would truly appreciate any helpful feedback in troubleshooting this last hitch in my new site!
- The topic ‘Glitch in Attempting to Display a Single Post on Front/Home Page.’ is closed to new replies.