(WordPress & PHP) Need help removing post off my homepage.

Discussion in 'PHP' started by Mafia Penguin, Jun 2, 2010.

  1. #1
    Hi there digital pointers, :)

    I installed a plugin (Featured Post List2 WITH IMAGE) that displays a featured post and now Im in some-what of a pickle.

    The link to the page with the problem... www.filmhammer.com

    It works fine, however, I'm not sure why, it displays the entire post underneath the featured plugin display. The comment section and the meta data footer were there also, however i managed to delete them within the PHP file.

    Could someone tell me, where in this code below is the section i can delete to get rid of the post on my home page? Or, if not, a different method i could use to get rid of the post showing below the featured plugin display.

    If you need more information to help solve this 'pickle' I'm in, i'll be happy to supply it.

    Heres the PHP file.

    <?php
    /*
    Template Name: HomePage
    */
    ?><?php get_header(); ?>
    <div class="art-contentLayout">
    <div class="art-content">
    
    
    <?php if (have_posts()) : while (have_posts()) : the_post(); $our_custom_field_variable = get_post_meta($post->ID, 'trailer', true);?> 
    
    
    
    
    <div class="art-Post-inner art-article">
    <div class="art-homePost">
    <div class="art-Post-body">
    
    <div class="art-PostContent">
    
    <div class="art-panelImage"></div>
    <a href="http://filmhammer.com/wp-login.php"><div class="art-apply"></div></a>
    <a href="http://filmhammer.com/wp-login.php"><div class="art-login"></div></a>
    
    <div class="art-pollBox">
    <div class="art-pollBoxHeader">The Featured Poll</div>
    <?php get_poll(4); ?>
    </div>
    <div class="art-columnDivide">
    </div>
    <div class="art-welcomeBox">
    <div class="art-welcomeBoxHeader">
    Welcome!
    </div>
    <div class="art-welcomeBoxTitleText">
    ...film fans, lovers, creators and bored internet users to filmhammer.com!
    </div>
    <div class="art-welcomeBoxText">
    Filmhammer.com is dedicated to your opinions about films. Read reviews, watch trailers, post comments, vote in polls and rate the films you have seen all within an easy to use, simple enviroment.
    </div>
    </div>
    
    <div class="art-postCount">
    <div class="art-counterBox"><? count_posts('all', '0', true)?></div>
    </div> 
    <a href="http://filmhammer.com/?random"><div class="art-randomButton"></div></a>
    <a href="http://filmhammer.com/?random"><div class="art-devBlog"></div></a>
    <div class="art-featuredBox"><?php featuredpostsList2($before = '<li>', $after = '</li>', $details = 'Y', $image = 'Y') ; ?>
    </div>
    
    
    <?php if (is_search()) the_excerpt(); else the_content(__('Read the rest of this entry &raquo;', 'kubrick')); ?> 
    
    <?php if (is_page() or is_single()) wp_link_pages(array('before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
    
            
    </div>
    <div class="cleared"></div>
    <?php ob_start(); ?>
    <?php $icons = array(); ?>
    <?php if (!is_page()): ?><?php ob_start(); ?><?php printf(__('Posted in %s', 'kubrick'), get_the_category_list(', ')); ?>
    <?php $icons[] = ob_get_clean(); ?><?php endif; ?><?php if (!is_page() && get_the_tags()): ?><?php ob_start(); ?><img src="<?php bloginfo('template_url'); ?>/images/PostTagIcon.png" width="18" height="18" alt="" />
    <?php the_tags(__('Tags:', 'kubrick') . ' ', ', ', ' '); ?>
    <?php $icons[] = ob_get_clean(); ?><?php endif; ?><?php if (!is_page() && !is_single()): ?><?php ob_start(); ?><img src="<?php bloginfo('template_url'); ?>/images/PostCommentsIcon.png" width="17" height="15" alt="" />
    <?php comments_popup_link(__('No Comments »', 'kubrick'), __('1 Comment »', 'kubrick'), __('% Comments »', 'kubrick'), '', __('Comments Closed', 'kubrick') ); ?>
    <?php $icons[] = ob_get_clean(); ?><?php endif; ?><?php if (0 != count($icons)): ?>
    <div class="art-PostFooterIcons art-metadata-icons">
    <?php echo implode(' | ', $icons); ?>
    
    </div>
    <?php endif; ?>
    
    
    
    
    
    </div>
    
    		<div class="cleared"></div>
        </div>
    </div>
    
    
    <?php endwhile; endif; ?>
    
    </div>
    <?php include (TEMPLATEPATH . '/sidebar1.php'); ?>
    </div>
    <div class="cleared"></div>
    
    <?php get_footer(); ?>
    PHP:
    Thanks for your time!
     
    Mafia Penguin, Jun 2, 2010 IP
  2. Mafia Penguin

    Mafia Penguin Peon

    Messages:
    64
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I fixed it myself, :D

    I just deleted the following....

    <?php if (is_search()) the_excerpt(); else the_content(__('Read the rest of this entry &raquo;', 'kubrick')); ?> 
    PHP:
    Which i guess looks for the excerpt and if it's not found, gets the post.


    Thanks anyway. :)
     
    Mafia Penguin, Jun 2, 2010 IP