• I have the Irresistible theme from Woothemes, that allows me to have a custom homepage. However, it includes blog post summaries, lifestream, and a flickr gallery. I would like it instead to have a Featured post, a box for top posts, and a few photos from my Nexgen gallery. How involved is this? I have a custom-home.php that I assume needs to be changed…

    My site is awanderingsole.com. I’m pretty sure this is too involved for me but I really want to have a landing page so just thought I’d ask. Thanks for your input!

Viewing 6 replies - 1 through 6 (of 6 total)
  • It may or may not be too complicated, but more information is needed to tell. How do you define ‘Featured post’? And what do you mean by ‘top posts’?

    It would help to see your custom-home.php file. If it is very long, don’t paste it here. Use wordpress.pastebin.ca and post the link here.

    Thread Starter awanderingsole

    (@awanderingsole)

    For a featured post I would like a photo with a caption on it that you can click on to take you to the most recent post. I’ve installed a plugin that could be used but not sure how to integrate it. As far as the others I’m thinking a few text boxes that essentially I could list some of my top posts or just put general links in to direct people to other parts of my website. I would like a small intro at the top of the page (below logo).

    Here’s the link for my custom home file. Warning: I have messed with it slightly but the changes didn’t work so it’s virtually as it was.
    https://wordpress.pastebin.com/m24071615

    Thanks for looking!

    Now I know what you want to show for ‘Featured Post’ and ‘top posts’, but I still don’t know how to select the ‘Featured Post’ or the ‘top posts’. What makes a post Featured or top? Is it a Custom Field, a Category, a Tag? How do you pick which post is Featured or top?

    Thread Starter awanderingsole

    (@awanderingsole)

    I want the featured post to be the most recent post. For top posts I want top posts to be posts that I select and input links to them…

    If you are ready to code, take a look at this: Codex The Loop: Multiple Loops in Action.

    I would suggest that instead of entering links for your top posts, you just create a ‘Top Post’ category for them. Your first loop would be something like this to get only the most recent post:

    <?php $my_query = new WP_Query('caller_get_posts=1&posts_per_page=1');
      while ($my_query->have_posts()) : $my_query->the_post();
      $do_not_duplicate = $post->ID; ?>
        <!-- Do stuff... -->
      <?php endwhile; ?>

    The second would be like this to get the 5 most recent in the ‘Top Post’ category:

    <?php $my_query = new WP_Query('category_name=Top Post&posts_per_page=5');
      while ($my_query->have_posts()) : $my_query->the_post();
        if( $post->ID == $do_not_duplicate ) continue; update_post_caches($posts); ?>
        <!-- Do stuff... -->
      <?php endwhile; ?>
Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Changing home page to a custom landing page’ is closed to new replies.