![]() |
Wordpress People: How Do I display post titles on my home page?
I have a full blog setup for my news section, and I want to put the latest headlines on the home page, which is not a blog... What's the easist way to do this? :helpme
|
Is this thing on?
|
Change the home page to you blog posts page. That's the only thing I can think of. But I'm no blog master.
Bump for you though. |
|
Add the query posts showposts, to force the number of excerpts to display, allowing you to be different than the main blog.
Code:
<?php query_posts('showposts=6'); if (have_posts()) : while (have_posts()) : the_post(); ?> Code:
<?php echo strip_tags(apply_filters('the_content', get_the_excerpt())); ?> |
i had a custom script written for me that pulls the title from my rss feed. you should be able to get a coder to whip something up that'll fit your needs for relatively cheap...
|
You don't have to include the excerpt, if you want just use the permalink title call then wrap it in the have posts line with how many showposts you want.
|
There are a lot of docs on how to include things on a page outside of the wordpress loop.
It can also be done parsing the xml. |
All times are GMT -7. The time now is 03:23 PM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123