• <?php
    /* Mystique/digitalnature */
    get_header();
    ?>

    <!-- main content: primary + sidebar(s) -->
    <div id="main">
    <div id="main-inside" class="clearfix">
    <!-- primary content -->
    <div id="primary-content">
    <?php
    if (have_posts()):
    while (have_posts()):
    the_post();
    include(TEMPLATEPATH . '/post.php');
    endwhile; ?>

    <div class="page-navigation clearfix">
    <?php if(function_exists('wp_pagenavi')): wp_pagenavi(); else: ?>
    <?php if(function_exists('wp_paginate')) {
    wp_paginate();
    } ?>
    <?php endif; ?>
    </div>
    <?php else: ?>
    <h1 class="title error"><?php _e("No posts found","mystique"); ?></h1>
    <p><?php _e("Sorry, but you are looking for something that isn't here.","mystique"); ?></p>

    <?php endif; ?>

    </div>
    <!-- /primary content -->

    <?php get_sidebar(); ?>

    </div>
    </div>
    <!-- /main content -->

    <?php get_footer(); ?>

    I want to edit this code to add some cool stuf i have a web site for movies ( http://only-fly.com ), i whant to show on homepage just 5 post of one category, and down i want somthing for movies (boxofice, best actors …) . Your can give mee the code of boxoffice and somthing alse and i can edit:D, pleasa come whit some ideas.

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

The topic ‘Modifing Index.php’ is closed to new replies.