• Is this possible? I am just starting out in WP and I wanted to make a WP theater CMS and have lets say a few pages. One would be “season” another would be “currently playing”. Let say on the main page it would show the current playing show. Is it possible to have only one blog entry show up in the currently playing page while the other 7 entries show up in the season page?

    I really want it so that there is some code to automatically put the next entry in the currently playing section. (ie, when date is past the current date then it will show the next date).

    I am new like I said so I just need advise or some place to get pointed to.

Viewing 7 replies - 1 through 7 (of 7 total)
  • This example will use the WordPress Default Theme.

    Read How can I have a static front page and posts display on a page called Blog?

    Where it refers to Front Page think of that as your Currently Playing Page. Where it refers to Blog, think of that as your Seasons page.

    For your Current Playing Page Template use this:

    <?php
    /*
    Template Name: CurrentlyPlaying
    */
    ?>
    <?php
    get_header();
    ?>
    	<div id="content" class="narrowcolumn">
    <?php
    $cat=get_cat_ID('Currently Playing'); // get a category ID
    query_posts ("cat=$cat&showposts=1");
    ?>
    	<?php if (have_posts()) : ?>
    
    		<?php while (have_posts()) : the_post(); ?>
    
    			<div <?php post_class() ?> id="post-<?php the_ID(); ?>">
    				<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
    				<small><?php the_time('F jS, Y') ?> <!-- by <?php the_author() ?> --></small>
    
    				<div class="entry">
    					<?php the_content('Read the rest of this entry &raquo;'); ?>
    				</div>
    
    				<p class="postmetadata"><?php the_tags('Tags: ', ', ', '<br />'); ?> Posted in <?php the_category(', ') ?> | <?php edit_post_link('Edit', '', ' | '); ?>  <?php comments_popup_link('No Comments »', '1 Comment »', '% Comments »'); ?></p>
    			</div>
    
    		<?php endwhile; ?>
    
    	<?php else : ?>
    
    		<h2 class="center">Not Found</h2>
    		<p class="center">Sorry, but you are looking for something that isn't here.</p>
    		<?php get_search_form(); ?>
    
    	<?php endif; ?>
    
    	</div>
    
    <?php get_sidebar(); ?>
    
    <?php get_footer(); ?>

    This assumes you have a category called “Currently Playing”

    On the main page:

    $current = '1'; // The Currently Playing category ID
    query_posts("include=$current&showpost=1");
    (the loop)

    Thread Starter EricSalvi

    (@ericsalvi)

    Thanks guys, so basically I could have 5 pages (about, currently playing/on stage, 2009-10 season and contact us) then when the user clicks on the currently playing page it will display the show that is on stage right now but when the click on the season page it shows the entire season?

    Does anyone know of examples like this already done in WP? Any really good tutorials out there?

    One way to do this would be to simply use categories.

    One category called Currently Playing and one called ‘2009 Season’ then the category archiving process of WordPress will do what you want, no changes needed.

    Then when the actual show that is currently playing changes, just delete the category from the post that WAS playing and assign it to the new show’s post.

    I think this is similar to the question I was going to ask…but I’m not sure.

    What we wanted was to have a few digest versions of posts on the main page and have the rest of the post reached by link.

    I tried a couple of things but they don’t seem practical. One was to truncate the post and link it to its own page. This looked like a nightmare to maintain.

    We’re new and don’t have the right vocab for finding the answer. Can someone provide a little direction?

    archienadon – your question should be posed on a separate thread as it really isn’t related to this discussion.

    I figured it out. Thanks.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Wanted to have a single blog entry on a page?’ is closed to new replies.