• Hey guys,

    This is really two separate questions but I feel they relate to each other and may affect one another so I have added them together.

    As I mentioned in my other post, I am currently running a web-site entitled “Bust to Bracelet” (http://www.busttobracelet.com) which follows my quest to turn $5.31 into a World Series of Poker bracelet.

    Question #1
    On this site, I plan on posting one daily update along with two feature articles (one of which would serve the dual purpose of being a daily update AND a feature article) per-week, therefore in a seven day week I would have made 8 posts over the course of the week. What I would like to do is have my most recent feature and my most recent “Daily Update” be posted on the front page and nothing else.

    For example, say my most recent feature article was a post entitled “Most Recent Feature Article” and then my most recent post was “Daily Update for DATEGOESHERE”, what I would like is for my front page to display my Daily Update and then immediately underneath it display my most recent feature article.

    So the page would look something like this:

    “Daily Update for DATEGOESHERE”
    blahblahblah
    “Most Recent Feature Article”

    Is there anyway I could set my WordPress to display in this manner without having to change my theme? If I do have to change my theme or hack my template in anyway, what would I have to do to achieve this effect?

    Question #2
    In relation to the display of posts on the front page, how do I prevent a post from being displayed on my front page?

    Each week, in one of my feature articles, I intend on listing my Lessons Learned. What I would like to do is post a separate, hidden post under the category of Lessons Learned so that users can click on a page link (in my upper right hand navigation menu) or on my categories listing and be brought to a page that displays my Lessons Learned throughout the week. However, I would never want this post to show up as its own separate post on the front page as it would be redundant (one feature article per-week, at its end, would include a list of my lessons learned for that week, so double posting would be redundant and would take a “Daily Update” slot if I am able to configure my WordPress properly).

    How would I go about doing this?

    I appreciate all of your responses, and I thank you in advance. I am completely new to WordPress (or at least, relatively) and enjoy the ease of updating my sites, but would like to know how to expand it’s functionality (or implement it) in these regards.

    Once again, thank you for your time.

    -SkysFall

Viewing 6 replies - 1 through 6 (of 6 total)
  • In regards to question #2

    Use ‘Front Page Excluded Categories’ plugin

    http://wordpress.org/extend/plugins/front-page-excluded-categories/

    Any post you don’t want to have show up in the front page, put it in a specific category (or sub-category) that you choose to exclude from the front page.

    Thread Starter busttobracelet

    (@busttobracelet)

    Thank you for answering Question #2, does anyone have any suggestions for Question #1?

    Again, Adam, I greatly appreciate your responses.

    I also need help with Question #1.

    I post all my posts into two categories: News & Articles. I want to have the main page display ONLY the most recent News post and the most recent Article posting.

    Is this possible in wordpress?

    Hi, I just did this on my site.

    You can edit your index.php file in the theme you’re using (or whatever page is being used as your home page)

    For each category your can call the category by name or id – mine is called ‘Event’ in this instance:

    <?php query_posts(“category_name=Event”); ?>
    Put this immediately before the loop for the posts which starts at <?php if (have_posts()) : ?> and goes through <?php endif; ?>

    (I removed the stuff after the else tag so if there are no posts for the category it is left blank) Immediately after the <?php if (have_posts()) : ?> I put a header for that section – in my example I put <h2>Upcoming Events</h2>

    You can repeat this for as many sections as you like. I have another: <?php query_posts(“category_name=Articles”); ?>

    You can also use multiple categories in a section by using ids separated with comas:
    <?php query_posts(“cat=14,2”); ?> or whatever

    Hope that helps

    Here’s what the full code looks like:
    <?php query_posts(“category_name=Event”); ?>

    <?php if (have_posts()) : ?>
    <h2>Upcoming Events</h2>
    <?php while (have_posts()) : the_post(); ?>

    <div class=”post” id=”post-<?php the_ID(); ?>”>
    <h3>” rel=”bookmark” title=”Permanent Link to <?php the_title(); ?>”><?php the_title(); ?></h3>
    <small><?php the_time(‘F jS, Y’) ?> <!– by <?php the_author() ?> –></small>

    <div class=”entry”>
    <?php the_content(); ?>
    </div>

    </div>

    <?php endwhile; ?>

    <?php else : ?><?php endif; ?>

    <?php query_posts(“category_name=Articles”); ?>
    <?php if (have_posts()) : ?>
    <h2>Recent Articles</h2>
    <?php while (have_posts()) : the_post(); ?>

    <div class=”post” id=”post-<?php the_ID(); ?>”>
    <h3>” rel=”bookmark” title=”Permanent Link to <?php the_title(); ?>”><?php the_title(); ?></h3>
    <small><?php the_time(‘F jS, Y’) ?>  |  <?php the_author_nickname() ?></small>

    <div class=”entry”>
    <?php the_excerpt(); ?>
    </div>

    </div>

    <?php endwhile; ?>

    <?php else : ?><?php endif; ?>

    I’m wondering if the above code will work to also STOP a post from being posted if I specify which post by the catagory it relates to.
    Any suggestions?
    http://www.maviefolle.com
    I’m trying to get the posts catagorized under daily dog…to NOT show up on my front page. Thanks

    By the way, I tried the plug in for Question 2 above and cannot get it to work. I just thought maybe there was a simple code

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Specifying Posts to Display on Front Page and Hiding Posts from Frontpage’ is closed to new replies.