WordPress.org

Ready to get started?Download WordPress

Forums

My Post Order
[resolved] My post order not work with pages (16 posts)

  1. remita
    Member
    Posted 2 years ago #

    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/

  2. remita
    Member
    Posted 2 years ago #

    I am using this plugin for sorting WP-ecommerce products....

    Thanks
    Remita

  3. Kapil Chugh
    Member
    Plugin Author

    Posted 2 years ago #

    What is the o/p that you are getting?

  4. remita
    Member
    Posted 2 years ago #

    NO its blank page

    but in Widget it seems to sorted order

  5. Kapil Chugh
    Member
    Plugin Author

    Posted 2 years ago #

    I tested it with code that you sent me and I didn't get any issue. Try to deactivate other plugins and test again.

  6. remita
    Member
    Posted 2 years ago #

    I deactive the other plugins but the same problem i didnt get the the sorted list....

    Only blank page...

    Did u get any output...???

  7. Kapil Chugh
    Member
    Plugin Author

    Posted 2 years ago #

    Yes, I'm getting desired o/p.

    Please check your error logs. Some error must be coming.

  8. Kapil Chugh
    Member
    Plugin Author

    Posted 2 years ago #

    Are you checking it on your local server or live server?

  9. remita
    Member
    Posted 2 years ago #

    Iam working in live server.But no error logs...

  10. Kapil Chugh
    Member
    Plugin Author

    Posted 2 years ago #

    Do one thing.
    Comment that line which contains query_post and check if you get any o/p and if possible share that page also.

  11. remita
    Member
    Posted 2 years ago #

    yes I commented the line ......

    Now i got the output of page title 'Products'

    The page link is

    http://dev.customweb.com.au/embrace/products

  12. Kapil Chugh
    Member
    Plugin Author

    Posted 2 years ago #

    Please check it now.

  13. remita
    Member
    Posted 2 years ago #

    Thank you....Thank you very much

    Can u please explain what is the problem.....

  14. Kapil Chugh
    Member
    Plugin Author

    Posted 2 years ago #

    There was a bug in my Plugin. It was not working with custom post type. I have fixed it now and upload new version in few minutes.

  15. remita
    Member
    Posted 2 years ago #

    THANK YOU...............

  16. Kapil Chugh
    Member
    Plugin Author

    Posted 2 years ago #

    I must say thanks to you. :)

    BTW, new veriosn uploaded.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic