PHP Noob Question. Please help.

Discussion in 'Programming' started by 509 Media, Nov 30, 2009.

  1. #1
    I am trying to loose a "featured post category" out of the left column on my Wordpress theme. The left column is in the index.php page. When I deleted the code from the file it drops the right column to the bottom of the page. Here is the code for the section in question.

    509media.com

    _________________________________________________

    I don't know if it matters but this is part of the theme I am using. The theme name is Mimbo.

    <div id="featured-cats">
    <h3><?php _e('Featured Categories','Mimbo'); ?></h3>

    <?php
    $display_categories = get_option('openbook_cats');
    foreach ($display_categories as $category) {
    $showposts = get_option('openbook_featured_posts');
    query_posts("showposts=$showposts&cat=$category");
    ?>

    <h5><a href="<?php echo get_category_link($category);?>"><?php single_cat_title(); ?>&raquo;</a></h5>

    <ul>
    <?php while (have_posts()) : the_post(); ?>
    <li class="clearfloat"><p class="date"><?php the_time('n/d/y'); ?> &bull; </p><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></li>
    <?php endwhile; ?>
    </ul>
    <?php } ?>

    </div><!--END FEATURED CATS-->

    ____________________________________________________

    Sorry for the noob question. I thought this would be the place to ask. If I have this posted in the wrong place please advise.

    Thanks
     
    509 Media, Nov 30, 2009 IP
  2. adservermods

    adservermods Peon

    Messages:
    42
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Hi,

    Will be able to do this as we have good developer with our team.

    Here is some of our work experiences in PHP for your reference,

    Some of our Ecommerce work experiences,

    www.essum.com
    http://www.gpreneur.com/os_template/osc/

    Some of our General projects work includes,
    www.oaktreeidea.com
    www.fotorax.com
    http://thefatpig.com
    http://countryfayre.co.uk/

    Please provide us more details, You can contact us at,

    Yahoo ID –

    MSN Id -

    Google Talk –


    We will be looking forward from you.
    Regards
     
    adservermods, Dec 3, 2009 IP
  3. ebookbusiness

    ebookbusiness Member

    Messages:
    41
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    43
    #3
    It drops the right column to the bottom because one of your DIV tags is not properly closed. Go to view source when on your site and see if a DIV tag is left open. This happened to me once and it was just a div tag issue.
     
    ebookbusiness, Dec 3, 2009 IP