Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Center area post/pages (http://forum.bytesforall.com/forumdisplay.php?f=32)
-   -   [SOLVED] Display Specific Post on Home Page (http://forum.bytesforall.com/showthread.php?t=7917)

macky Jul 3, 2010 01:18 AM

[SOLVED] Display Specific Post on Home Page
 
Hi!

I have spent considerable time perusing the forum for anything that might help me with this question to no avail. So, please forgive me if this is a question that has been answered else where. :)

First of all, I love Atahualpa! It is a wonderfully customizable template.

--I have Atahualpa 3.5.1 running on WP 2.9.2

--The URL is http://www.solarforhome.org

--I would like to display post number #10 statically on the home page of my website and no other posts.

--Also, I do not want to have bread crumbing display on the homepage.

I am sure there is an easy way to accomplish this; however, I have been unable to figure it out. Any insight that could be provided would be greatly appreciated!

Thanks in advance.

Macky

macky Jul 3, 2010 07:09 AM

I uploaded a screenshot of the desired layout http://www.solarforhomeuse.org/layout.jpg

Thanks again!

Macky

juggledad Jul 3, 2010 04:02 PM

How about making the post a sticky?

macky Jul 3, 2010 04:10 PM

Hi Juggledad,

Thanks for your response. I have done that, but I also get other posts displayed below. I tried to limit the number of displayed post in the "Reading Settings" to no avail.

Macky

juggledad Jul 3, 2010 04:22 PM

Ok, here is another idea. In the golf forum tutorials (available to members who have donated $20 or more a make sure you are signed into the forum when you donate) is a new post 'HOWTO: a 'Custom Query' PAGE template'
With this template you could create a new page, use the template and have it display the post in a particular category, say 'announcements'. Now you add the announcement category to the post and then at dashboard-settings-reading, you point the front page displays, to this new page you just created.

If there is only one post in the category, that is all you will see.

macky Jul 3, 2010 08:52 PM

Hi Again Juggledad,

I actually figured out how to do it...I used the plugin Featured Post

http://wordpress.org/extend/plugins/featured-post/

I created a template called home.php and copied the exact code from the index.php file and added

<?php
/*
Template Name: Home Page
*/
?>

at the top of the home.php template. I then uploaded it into the template directory.

I put the piece of code from the plugin before the loop.

<?php query_posts($query_string."&featured=yes"); ?>

Then I selected the post that I wanted featured on the Home Page, and it works like a champ!

I hope this can help someone else!

Thanks,

Macky


All times are GMT -6. The time now is 09:57 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.