Hiding Just the Main Post Feed on Homepage
-
My WordPress site:
http://vex-i.com/sportimedia.com/wordpress/Hey,
I’ve taken a free wordpress template and I’m trying to skin it for a website I’m working on. The template includes a .minipost function, which is all I want to display on the index page.
How would I go about simply getting rid of the post feed underneath the black .minipost areas?
I’ve considered putting some visibility:hidden codes in the CSS, but it hides all posts on every page.
Here’s the index.php:
<?php get_header(); ?>
<?php include (TEMPLATEPATH . ‘/slide.php’); ?>
<div id=”content”><?php include (TEMPLATEPATH . ‘/glide.php’); ?>
<?php include (TEMPLATEPATH . ‘/minipost.php’); ?>
<div class=”clear”></div>
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?><div class=”post” id=”post-<?php the_ID(); ?>”>
<h2>” rel=”bookmark” title=”Permanent Link to <?php the_title(); ?>”><?php the_title(); ?></h2>
<div class=”date”><span class=”clock”> <?php the_time(‘F – j – Y’); ?></span> <span class=”author”>Reporter: <?php the_author(); ?></span> <span class=”com”><?php comments_popup_link(‘Respond’, ‘1 Response’, ‘% Responses’); ?></span>
</div><div class=”cover”>
<div class=”entry”>
<?php $screen = get_post_meta($post->ID,’screen’, true); ?>
<img src=”<?php echo ($screen); ?>” width=”120″ height=”80″ alt=”” />
<?php the_excerpt(); ?>
<div class=”clear”></div></div>
</div>
<div class=”postinfo”>
<div class=”category”><?php the_category(‘, ‘); ?> </div></div>
</div>
<?php endwhile; ?><div class=”navigation”>
<div class=”alignleft”><?php next_posts_link(‘« Older Entries’) ?></div>
<div class=”alignright”><?php previous_posts_link(‘Newer Entries »’) ?></div>
</div><?php else : ?>
<div class=”post”>
<h1 class=”title”>Not Found</h1>
<p>You are looking for something that isn’t here.</p>
</div><?php endif; ?>
</div>
<?php get_sidebar(); ?>
<?php get_footer(); ?>
Thanks in advance!
Will
-
You did not specify a blog address or reason for posting when you created this topic.
This support forum is for blogs hosted at WordPress.com. If your question is about a self-hosted WordPress blog then you’ll find help at the WordPress.org forums.
If you don’t understand the difference between WordPress.com and WordPress.org, you may find this information helpful.
If you forgot to include a link to your blog, you can reply and include it below. It’ll help people to answer your question.
This is an automated message.
- The topic ‘Hiding Just the Main Post Feed on Homepage’ is closed to new replies.