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
The images link becasue this tag: <a href="http://www.levelsevenltd.com" target="_blank">Web Development by </a> is never closed.

To add the posts to the mainpage you have to use a ‘Wordpress Loop’, the bit of code dwoof posted earlier.

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

Err, the tag didn’t appear to close when I first looked at it, now I see that the link has been removed.

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

Ah! Fixed the poblem of the images linking to our site.

Anyone out there who can help me make WP display recent posts on the homepage?

18 posts
  • Has been part of the Envato Community for over 4 years
  • Has collected 50+ items on Envato Market
petres_007 says
Err, the tag didn’t appear to close when I first looked at it, now I see that the link has been removed.

Yeah, I noticed that and fixed it. Thanks!

How do use the code Dwoof pasted without messing up the site as it is? Just need to know where and how (if there’s a how) to paste it. Also, if I need to edit the code or use it as it is.

Thanks!

19 posts
  • Has been part of the Envato Community for over 4 years
  • Has collected 1+ items on Envato Market
  • Sells items exclusively on Envato Market
  • Located in United States
schmackLab says

The code looks fine as it is. You just need to insert it into your theme on the homepage where you want to have the recent posts appear.

The code only shows excerpts not the entire post. Excerpts by default are the first 55 characters of your post or you can add your own excerpt at the bottom of the post in the admin.

You don’t have to worry about screwing up your site. Put the code in and it should work. If there’s a problem with the php in the code the worst that could happen is the page will break and display nothing. In this case just remove the code you just pasted in save and refresh and you will back where you started no harm done.

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