• Hi Everyone

    I’m working on my blog at http://www.businessjolt.com (note at the moment the blog has sample content on it).

    I have created a custom home page which uses a static page with a custom template, and uses the “recentposts” plugin to bring in the latest 1 post on the left side, and the “popularposts” plugin to import the 3 most popular posts on the right side.

    This page is working as I want it to, but the problem is that when people click through to view ALL posts, I want them to see a listing of all the posts but NOT the first post which appears on the homepage.

    So when they view http://www.businessjolt.com/page/1/ they should see a listing of posts but without the post from the homepage

    I’m trying to find the best way to do this, but im coming up empty. I have tried using the offset feature but that offsets the listing on all following pages and messes everything up

    Any assistance would be greatly appreciated

    thanks
    James

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter jamesadyson

    (@jamesadyson)

    i should also add that i’m using a woothemes theme if that helps anyone?

    If you don’t mind getting your hands a little dirty…. I would suggest looking at Appearance… Editor. Look for Archives on the right. Edit that, and look for a line similar to what’s below. (Maybe copy the text into something in case you mess it up) Notice the second IF in there, and see how it’s designed to jump out if the post is 179. You could try something like that.

    <?php if (have_posts()) : while (have_posts()) : the_post(); if( $post->ID == '179' ) continue; ?>

    To find out the number of your post, go to Posts, and hold the mouse over the title. Somewhere on your screen you should see a link containing “post=8” or whatever. So you’d use the number 8 in the code block above.

    Hope that helps, Dave

    Thread Starter jamesadyson

    (@jamesadyson)

    Hi Dave

    Thanks for the response however that’s not quite what i’m trying to do. At the moment the site pulls in the latest post and puts that on the home page (static page) via a plugin

    Now When someone views the main blog they are still seeing that same post from the homepage along with the others. I need a dynamic way to exclude this first post from the main blog listings which I think use the index.php template

    Any ideas?

    I can’t see your theme, so very hard to say. It’s possible you’ll need to do it in index.php in your theme. I’m afraid I can’t guide you right to it, you’ll need to take my idea and run with it. My idea can apply to many parts of the template. Many template sections use the while loop using the_post. You’ll have to do some digging, I’m afraid.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How To Modify Post Listings When Using Static Home Page’ is closed to new replies.