WordPress.org

Support

Support » Plugins and Hacks » My Post Order » [Resolved] [Plugin: My Post Order] My post order not work with pages

[Resolved] [Plugin: My Post Order] My post order not work with pages

  • I am using the below code, its not working
    But it working with widget nicely……..

    [ Moderator Note: Please post code or markup snippets between backticks or use the code button. ]

    <?php
    /**
    * Template Name: Product
    *
    * A custom page template without sidebar.
    *
    * The "Template Name:" bit above allows this to be selectable
    * from a dropdown menu on the edit page screen.
    *
    * @package WordPress
    * @subpackage Twenty_Ten
    * @since Twenty Ten 1.0
    */
    
    get_header(); ?>
    
    <div class="content">
    <div class="con_left">
    
    <div class="block1">
    <?php
    /* Run the loop to output the page.
    * If you want to overload this in a child theme then include a file
    * called loop-page.php and that will be used instead.
    */
    get_template_part( 'loop', 'page' );
    ?>
    <?php
    // choose a category
    query_posts('section_name=ProductOrder');
    while (have_posts()) : the_post();
    ?>
    <h2><?php the_title(); ?></h2>
    
    <div class="entry">
    <?php the_excerpt(); ?>
    
    </div>
    
    <?php endwhile;?>
    <div class="clear"></div>
    </div>
    </div><!--con_left-->
    <?php get_sidebar(); ?>
    <div class="clear"></div>
    </div><!--content-->
    <?php get_footer(); ?>

    http://wordpress.org/extend/plugins/my-posts-order/

Viewing 15 replies - 1 through 15 (of 15 total)
Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘[Resolved] [Plugin: My Post Order] My post order not work with pages’ is closed to new replies.
Skip to toolbar