• Resolved shivark

    (@shivark)


    Hi there,

    I am using wordpress 3.0.1 persian, and :
    permalink is not enabled.
    iis6

    when creat a post and click on show the post it always the lastest post even though the post ids are different at url.

    i have customized single.php

    <div id="main_wrapper">
        <div id="container_wrapper">
            <div id="home_left_container">
                <div id="news_container">
                    <div id="news_container_heading"><h3><span class="blue_bold_text">?????</span><span class="bold_text">??</span></h3></div>
                    <div class="blue_line"></div>
                    <ul>
                        <?php $temp_query = $wp_query; ?> <?php
                        $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
                        $sticky = get_option('sticky_posts');
                        $args = array(
                            'caller_get_posts' => 1,
                            'category_name' => 'NEWS',
                            'post__not_in' => $sticky,
                            'paged' => $paged,
                        );
                        $my_query = new WP_Query($args); ?>
                        <?php while ($my_query->have_posts()) : $my_query->the_post();
                        ?>
                            <li><a href="<?php the_permalink() ?>"> <?php the_title(); ?></a></li>
                        <?php endwhile; ?>
                        </ul>
    
                    </div>
                </div>
    
                <div id="home_main_container">
                    <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
                        <div id="news_page_title"><h1><a href="/?page_id=34">?????</a>
                  | <span class="blue_text"><?php the_title(); ?> </span></h1></div>
                    <?php
                            $more = 1;
                            the_content("Read more");
                            ?>
                            <?php if ( get_the_author_meta( 'description' ) ) : // If a user has filled out their description, show a bio on their entries  ?>
                            <?php endif; ?>
    
                            </div><!-- #post-## -->
                            </div>
                            <div class="clr"></div>
    
                        </div>
                    </div>
    
                    <div class="clr"></div>

    `

    i am doing something wrong?

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘clicking on show the post, always shows the latest post!’ is closed to new replies.