WordPress.org

Ready to get started?Download WordPress

Forums

My Post Order
[resolved] Changing the order of post (16 posts)

  1. rgraubard
    Member
    Posted 2 years ago #

    I am new to WP. I am not a techie and I don't code. I down loaded "My Post Order" and desperately tried to make the most rudimentary change to my post so that the post would show the oldest first and continue down to the newest last....nothing.

    Nothing that you said could be done worked. Am I really supposed to be a code writer to do something this simple? When I buy a car I expect that it will go into reverse also.

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

  2. Kapil Chugh
    Member
    Plugin Author

    Posted 2 years ago #

    Creating sections and ordering posts and displaying the same using widget requires no coding at all.

    If you want to display it somewhere else in your theme, in that case some basic coding is required.

    You can also try this plugin http://wordpress.org/extend/plugins/post-types-order/ which requires no coding at all or tell me in detail how you are doing it.

  3. rgraubard
    Member
    Posted 2 years ago #

    Nope, that doesn't work either. Does anyone there actually know how to change the order of posts???? How simple/difficult could this be? I don't have to pull the transmission from my car and change the linkage in order to put it in reverse. Are you really telling me there is no way to change the order of my posts without taking a course in computer programing?

  4. Kapil Chugh
    Member
    Plugin Author

    Posted 2 years ago #

    No. It is very simple.

    I don't know what you are doing wrong. Can you share URL where you are checking it.

  5. rgraubard
    Member
    Posted 2 years ago #

    Kapil

    I am not sure what you want exactly but here is my blog site address:
    democracyafailedexperiment.com

    I just need someone that can tell be why nothing is working here. This is the most frustrating experience of my life!!!

    Richard

  6. Kapil Chugh
    Member
    Plugin Author

    Posted 2 years ago #

    Thx Richard.

    I can see two posts on your Homepage and one widget in the sidebar. Now please let me know how exactly you want to display your posts.

  7. rgraubard
    Member
    Posted 2 years ago #

    I am posting my latest book on the blog, a few chapters at a time. I want the oldest post to be first followed by each successive post, so that it reads in order for anyone that comes to the blog at anytime. In other words, the reverse order of how a blog typically posts.

    Richard

  8. Kapil Chugh
    Member
    Plugin Author

    Posted 2 years ago #

    Please do the following steps:

    (1) Disable your all 'post order' related plugins.
    (2) Open Admin panel of your blog.
    (3) Then go to Appearance -> Editor.
    (4) In RHS sidebar you will see a file 'Main Index Template(index.php)'
    (5) Click on that link and file will open in Editor.
    (6) Take backup of original file.
    (7) In Editor after some lines you will see a line like this
    <?php if ( have_posts() ) : ?>
    (8) Add following line just above it
    <?php query_posts('orderby=ID&order=ASC'); ?>
    (9) Save your file

    Please let me know the output. I really want to help you.

  9. rgraubard
    Member
    Posted 2 years ago #

    Kapil

    I followed your instructions. I updated the file. Now what? The blog still looks the same. I have only made 2 posts. Do I eliminate the second post and repost it? Will that change the post order for all successive posts?

    I appreciate your help.

    Rchard

  10. Kapil Chugh
    Member
    Plugin Author

    Posted 2 years ago #

    Well done!!

    That's it. Now your posts will come in reverse order.

    Blog is still looking the same because you have marked your first post as sticky.

    Uncheck it and you will get your desired result.

  11. rgraubard
    Member
    Posted 2 years ago #

    Kapil

    Thank you so much. I never thought it was going to work.

    btw - why didn't the plug-in allow me to change the order of the post without manually changing the code? I thought that was the whole reason for a plug-in.

    Richard

  12. Kapil Chugh
    Member
    Plugin Author

    Posted 2 years ago #

    My plugin also states that you need to add code manually in theme.

    Let me see if I can change it so that there is no need to change code.

  13. mnng1984
    Member
    Posted 1 year ago #

    Hey kapil,

    First of all VERY nice pluing, just what I needed !!
    BUT cant figure it out :/ Can you please help me?

    All I want is to order my posts in each category by alphabetic
    instead of date.

    MNNG

  14. Kapil Chugh
    Member
    Plugin Author

    Posted 1 year ago #

    Please check these lines in includes/drag_drop_criteria.php

    if (isset($category_id) && $category_id != '') {
      $args['cat'] = $category_id;
    }

    replace it with

    if (isset($category_id) && $category_id != '') {
      $args['cat'] = $category_id;
    $args['order'] = 'ASC';
    $args['orderby'] = 'title';
    }

    I haven't tested it, so please check and revert.

    Please open a new thread for your requirement.

  15. mnng1984
    Member
    Posted 1 year ago #

    resolved. thanks and sorry for wrong post placement.

  16. Kapil Chugh
    Member
    Plugin Author

    Posted 1 year ago #

    Gr8!! :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.