my posts in my page are not the same as my home page's posts

  • Unknown's avatar

    hi
    I have a big problem and hope you help me
    I put my category posts in a page but there is problem:
    page show posts completely and I want to shows post like home page
    I mean I want to show part of post like homepage…
    please help me:

    its my page html code:
    <!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.01 Transitional//EN” “http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd”>
    <HTML xmlns=”http://www.w3.org/1999/xhtml”>

    <? /* Template Name: music */ ?>
    <?php get_header(); ?>

    <?php include (TEMPLATEPATH . ‘/rsidebar.php’); ?>
    <?php include (TEMPLATEPATH . ‘/lsidebar.php’); ?>

    <div id=”centercol”>

    <div id=”entry”>

    </div>

    <?php include (TEMPLATEPATH . “/post-sabet-4.php”); ?>
    <?php include (TEMPLATEPATH . “/post-sabet.php”); ?>

    <?php
    $temp = $wp_query;
    $wp_query= null;
    $wp_query = new WP_Query();
    $wp_query->query(‘posts_per_page=10′.’&paged=’.$paged);
    while ($wp_query->have_posts()) : $wp_query->the_post();
    ?>

    <div id=”entry”>
    <div id=”centercol-up”></div>
    <div id=”centercol-body”>
    <div class=”entry”>
    <div class=”entry-header”>
    ” rel=”bookmark” title=”<?php the_title(); ?>”><?php the_title(); ?>
    </div>
    <div class=”entry-hit”>
    <img border=”0″ src=”<?php bloginfo(‘template_url’); ?>/images/hits.gif” width=”10″ height=”13″ alt=”icon”>بازدید: <?php if(function_exists(‘the_views’)) { the_views(); } ?>
    <img border=”0″ src=”<?php bloginfo(‘template_url’); ?>/images/category.gif” width=”17″ height=”12″ alt=”icon”>دسته: <?php the_category(‘, ‘); ?>
    </div>
    <div class=”entry-body”>
    <?php the_content(‘<b><img border=”0″ src=”http://www.mobilestoon.ir/wp-content/themes/mob-new/images/more.gif” width=”16″ height=”16″ alt=”icon”>برای دیدن ادامه مطلب و دانلود اینجا کلیک کنید</b>’); ?>
    </div>
    <div class=”entry-footer”>

    <img border=”0″ src=”<?php bloginfo(‘template_url’); ?>/images/author.gif” width=”24″ height=”13″ alt=”icon”> نوشته: <?php the_author(); ?>
    <img border=”0″ src=”<?php bloginfo(‘template_url’); ?>/images/date.gif” width=”19″ height=”13″ alt=”icon”> تاریخ: <?php the_time(__(‘j F, Y’,’kubrick’)) ?>
    <img border=”0″ src=”<?php bloginfo(‘template_url’); ?>/images/comment.gif” width=”18″ height=”14″ alt=”icon”> <?php comments_popup_link(__(‘بدون نظر’), __(‘1 نظر’), __(‘% نظر’)); ?>
    </div>
    </div>
    </div>
    </div>
    <div id=”centercol-down”></div>
    <?php endwhile; ?>

    <div id=”entry”>
    <div id=”centercol-up”></div>
    <div id=”centercol-body”>
    <div class=”entry”>
    <div class=”entry-header”>
    سایر صفحات سایت
    </div>
    <div class=”entry-body”>
    <div align=”left”>

    <span dir=”ltr”><?php if(function_exists(‘wp_pagenavi’)) { wp_pagenavi(); } ?></span>

    </div>

    </div>
    </div>
    </div>
    </div>
    <div id=”centercol-down”></div>

    <?php $wp_query = null; $wp_query = $temp;?>

    <?php include (TEMPLATEPATH . “/post-sabet-2.php”); ?>
    <?php include (TEMPLATEPATH . “/post-sabet-3.php”); ?>
    </div>

    <?php get_footer(); ?>

  • Unknown's avatar

    You can’t edit the php here. Meaning you can’t change the way your theme functions. You can switch themes to one that functions the way you want, though.

  • The topic ‘my posts in my page are not the same as my home page's posts’ is closed to new replies.