18 posts
  • Has been part of the Envato Community for over 4 years
  • Has collected 50+ items on Envato Market
petres_007 says

Pretty new to WP and would like to know how I can get my homepage to always automatically display some of the most recent posts on my site. :-)

155 posts
  • Has been part of the Envato Community for over 5 years
  • Located in Canada
  • Has collected 10+ items on Envato Market
  • Sells items exclusively on Envato Market
Warll says

It should be doing that already, that is after all the point of a blogging CMS .

Have you installed WP? It should already be set to show the newest posts.

16 posts
  • Has referred 10+ members
  • Has sold $75,000+ on Envato Market and is now an Elite Author
  • Has collected 1+ items on Envato Market
  • Elite Author: Sold more than $75,000 on Envato Market
+3 more
dwoolf says
Pretty new to WP and would like to know how I can get my homepage to always automatically display some of the most recent posts on my site. :-)

you would use the wordpress loop with the query functionality:


<?php $featured = new WP_Query();
    $featured?>query('showposts=3');
    while($featured->have_posts()) : $featured->the_post();
    $wp_query->in_the_loop = true;
    $featured_ID = $post->ID;
?>

<li>
    <h4><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h4>

    <p><?php the_excerpt(); ?></p>
</li>

<?php endwhile; ?>

The <p> and <h4> tags can be anything for the title and content. And you would change the number in showposts for how many you want to display. The li's are also for styling.

</h4></p>
18 posts
  • Has been part of the Envato Community for over 4 years
  • Has collected 50+ items on Envato Market
petres_007 says
Pretty new to WP and would like to know how I can get my homepage to always automatically display some of the most recent posts on my site. :-)

you would use the wordpress loop with the query functionality:


<?php $featured = new WP_Query();
    $featured?>query('showposts=3');
    while($featured->have_posts()) : $featured->the_post();
    $wp_query->in_the_loop = true;
    $featured_ID = $post->ID;
?>

<li>
    <h4><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h4>

    <p><?php the_excerpt(); ?></p>
</li>

<?php endwhile; ?>

The 

and

tags can be anything for the title and content. And you would change the number in showposts for how many you want to display. The li’s are also for styling.

Jeez! I have to add code now?? Thought it was something I could enable from the wordpress dashboard.

Anyway, if you don’t mind, can you please tell me where to place the code – what file and anything to watch out for? I wouldn’t want to mess up the site now… ;-)

You can take a look at the site homepage here to see what I’m talking about – http://nigerianpolishinitiative-ng.org

Still working on it.

Thanks guys! ;-)

2468 posts
  • Has been part of the Envato Community for over 5 years
  • Has sold $100+ on Envato Market
  • Has referred 100+ members
  • Has been a beta tester for an Envato feature
+2 more
digitalimpact says

If coding it looks too complicated, you can try Justin Tadlock’s Query Posts Widget plugin

18 posts
  • Has been part of the Envato Community for over 4 years
  • Has collected 50+ items on Envato Market
petres_007 says

@digitalimpact,

I downloaded and installed the plugin but it came in the form of a widget for my sidebar and my sidebar already has something like that.

WHat I want is something to make my HOMEPAGE display recent posts. :-(

2468 posts
  • Has been part of the Envato Community for over 5 years
  • Has sold $100+ on Envato Market
  • Has referred 100+ members
  • Has been a beta tester for an Envato feature
+2 more
digitalimpact says
@digitalimpact,

I downloaded and installed the plugin but it came in the form of a widget for my sidebar and my sidebar already has something like that.

WHat I want is something to make my HOMEPAGE display recent posts. :-(

Oh…well, in that case, as someone said above… WP already shows the last posts you wrote on your homepage by default… or is it something else (can you show us an example on some site, ‘cause I really don’t understand…)?

155 posts
  • Has been part of the Envato Community for over 5 years
  • Located in Canada
  • Has collected 10+ items on Envato Market
  • Sells items exclusively on Envato Market
Warll says

Um, something is very fishy here, that website he linked to is at best I can tell a scam. His only blog post is garbled and would appear to have been create for SEO purposes.

The “UN” and “EU” logos at the bottom link to some webs design company, and the site claims to have been developed with the help of the UN.

18 posts
  • Has been part of the Envato Community for over 4 years
  • Has collected 50+ items on Envato Market
petres_007 says

@Warll,

I know WP normally should display recent posts on the homepage by default but mine isn’t (WP 2.9.2). You can see the homepage for yourself here: http://nigerianpolishinitiative-ng.org

Any tips please?

18 posts
  • Has been part of the Envato Community for over 4 years
  • Has collected 50+ items on Envato Market
petres_007 says
Um, something is very fishy here, that website he linked to is at best I can tell a scam. His only blog post is garbled and would appear to have been create for SEO purposes. The “UN” and “EU” logos at the bottom link to some webs design company, and the site claims to have been developed with the help of the UN.

Its no scam, ok. The content for the site will be populated by the NGO handling the project (Most of whats curently on it is dummy content we placed there).

I’m the designer handling the project and I’m trying to tidy up this project.

And as for the footer images that link to our site, I’m wondering how that’s possible. I just checked dynamic contents in the WP dashboard now and there’s no hyperlink in the code used there. Our only liinkback/credit from that site is already there on the left.

Helpful Information

  • Please read our community guidelines. Self promotion and discussion of piracy is not allowed.
  • Open a support ticket if you would like specific help with your account, deposits or purchases.
  • Item Support by authors is optional and may vary. Please see the Support tab on each item page.

Most of all, enjoy your time here. Thank you for being a valued Envato community member.

Post Reply

Format your entry with some basic HTML. Read the Full Details, or here is a refresher:

<strong></strong> to make things bold
<em></em> to emphasize
<ul><li> or <ol><li> to make lists
<h3> or <h4> to make headings
<pre></pre> for code blocks
<code></code> for a few words of code
<a></a> for links
<img> to paste in an image (it'll need to be hosted somewhere else though)
<blockquote></blockquote> to quote somebody

:grin: :shocked: :cry: Complete List of Smiley Codes

by
by
by
by
by
by