Forums

Getting rid of content on home page (6 posts)

  1. flemingxrt
    Member
    Posted 2 months ago #

    Hey, I have been trying to get rid of the content on my home page just the posts that show up on my theme so i can make it a more navigational page rather just just have these posts pop up and im having trouble doing it can anyone help me out? Here is my site and code. http://www.thelcdtvreviewer.com

    <?php get_header() ?>
    	<?php include(TEMPLATEPATH.'/includes/slide.php'); ?>
    
    	<div id="content">
    	<?php if (have_posts()) : $odd = true; ?>
    		<div id="mini-post-wrap" class="clearfix">
    			<?php while (have_posts()) : the_post(); ?>
    			<div id="post-<?php the_ID(); ?>" class="mini-post<?php if ($odd) : echo ' odd'; else : echo ' even'; endif; ?>">
    				<h3 class="title"><a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h3>
    				<div class="entry">
    <div style="display: block; margin: 10px 0px 0px 0px;">
    <?php the_excerpt_reloaded(80, '<img>', 'content_rss', FALSE); ?>
    </div>
    
    				</div>
    
    <div class="meta">
    					<span class="meta-left"></span>
    					<span class="date-post icon">Posted on <?php the_time('F j Y') ?></span>
    					<a class="read-more icon" href="<?php the_permalink() ?>" title="Keep Reading...">Keep Reading...</a>
    					<span class="meta-right"></span>
    				</div>
    			</div>
    			<?php $odd = !$odd; endwhile; ?>
    		</div><!-- /mini-post-wrap -->
    		<div class="navigation clearfix">
    			<div class="alignleft"><?php next_posts_link('&laquo; Older Entries') ?></div>
    			<div class="alignright"><?php previous_posts_link('Newer Entries &raquo;') ?></div>
    		</div>
    	<?php else: ?>
    		<h2 class="center">Not Found</h2>
    		<p class="center">Sorry, but you are looking for something that isn't here.</p>
    	<?php endif ?>
    <?php get_sidebar(); get_footer(); ?>

    Thanks.

  2. apljdi
    Member
    Posted 2 months ago #

    Exactly what are you wanting to keep and what are you wanting to get rid of? Everything between if (have_posts()) and <?php endif ?> is blog post content, basically.

  3. flemingxrt
    Member
    Posted 2 months ago #

    Im just trying to get rid of the recent posts so I can put some new content in there like div tables in the 2 columns.

  4. esmi
    Member
    Posted 1 month ago #

    Another option might be to create a custom page template, publish a new page using this template and then set your blog up to use a static front page using Admin/Settings/Reading.

    http://codex.wordpress.org/Pages#Creating_Your_Own_Page_Templates
    http://codex.wordpress.org/Creating_a_Static_Front_Page

  5. flemingxrt
    Member
    Posted 1 month ago #

    So theres no way to just get rid of the posts that pop up and replace them with content i want?

  6. esmi
    Member
    Posted 1 month ago #

    Not without doing some file editing, no.

Reply

You must log in to post.

About this Topic