Jump to content
Sign in to follow this  
real_illusions

wordpress homepage functions problems

Recommended Posts

Hi,I've found the if_home and if_front_page to be potentially useful..but..also found that it causes problems.Current setup is that in the index.php file I have some static content followed by the list of blog posts, limited to only 1.When clicking on "older posts", it goes to /page/2/ as the URL, but its basically a repost of the home page.I then did this:<?phpif ( is_front_page() ) {query_posts('showposts=1');} else {query_posts('showposts=10');}?>And also surrounded the static content in a similiar way<?phpif ( is_front_page() ) {// static content} else {// nothing at all}?>I also tried it with is_home function, but neither work. I just get a repeat of the home page on a different URL and the most recent post rather than a list of the 10 recent posts. Anyone know why and how to get it to work?Thanks.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...