Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter grinch007

    (@grinch007)

    Forum: Fixing WordPress
    In reply to: Category problems
    Thread Starter grinch007

    (@grinch007)

    Thanks for all your help!

    Forum: Fixing WordPress
    In reply to: Category problems
    Thread Starter grinch007

    (@grinch007)

    Here is my index file code, what do I need to take out and what do I need to add?
    Thanks.

    <?php get_header(); ?>
    <?php //category variables
    $cat1 = 1;
    $cat2 = 5;
    $cat3 = 4;

    $post_cat1 = get_posts(array(‘numberposts’ => 1,’category’ => $cat1));
    $descr_cat1 = get_the_category_by_ID($cat1);
    $post_cat2 = get_posts(array(‘numberposts’ => 1,’category’ => $cat2));
    $descr_cat2 = get_the_category_by_ID($cat2);
    $post_cat3 = get_posts(array(‘numberposts’ => 3,’category’ => $cat3));
    $descr_cat3 = get_the_category_by_ID($cat3);

    ?>
    <div id=”main”>
    <div class=”column”>
    <?php get_sidebar(); ?>
    </div>
    <div class=”content”>
    <div class=”top”>
    <div class=”inner”>
    <h3><span><?php echo $descr_cat1 ?></span></h3>
    </div>
    <div class=”inner-column”>
    <h3><span><?php echo $descr_cat3 ?></span></h3>
    </div>
    </div>
    <div class=”inner-content”>
    <div class=”inner”>
    <div class=”block”>
    <?php print $post_cat1[0]->post_content; ?>
    </div>
    <div class=”block”>
    <h3 class=”bord”><span><?php echo $descr_cat2 ?></span></h3>
    <?php print $post_cat2[0]->post_content; ?>
    </div>
    </div>
    <div class=”inner-column”>
    <?php if(!empty($post_cat3))
    {
    foreach($post_cat3 as $col_post)
    {
    setup_postdata($col_post);
    $exc = get_the_excerpt();
    echo ‘<p>’.$exc.’guid.'”>Read more.</p>’;
    }
    }
    ?>
    </div>
    </div>
    </div>
    </div>
    <?php get_footer(); ?>

    Forum: Fixing WordPress
    In reply to: Category problems
    Thread Starter grinch007

    (@grinch007)

    no im not using that plug-in do i need it?

    Forum: Fixing WordPress
    In reply to: Category problems
    Thread Starter grinch007

    (@grinch007)

    I didnt code this I had psd2html do it and cannot get support from them, where would I put this line of code at?

Viewing 5 replies - 1 through 5 (of 5 total)