WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: Admin Management Xtended] Post order (29 posts)

  1. karimawad
    Member
    Posted 4 years ago #

    Hi,

    I have an installation on WP 2.9.2 and i can't seem to get post ordering to work. We've put in numbers but should it show the order on the posts page?

    thanks

    http://wordpress.org/extend/plugins/admin-management-xtended/

  2. Alphawolf
    Member
    Posted 4 years ago #

    Hey karimawad,

    did you change the orderby parameter to menu_order?

  3. karimawad
    Member
    Posted 4 years ago #

    hmm... don't see that parameter. do i fix that in my main page template?

  4. Alphawolf
    Member
    Posted 4 years ago #

  5. karimawad
    Member
    Posted 4 years ago #

    Ah, sorry, that's not what I meant really. I see in the post admin there is a place for post order, but that doesn't seem to do anything. I have the home page setup to display by categories so that's not a problem, I just need to change which posts are displayed (aka the top 10 for some sections, first 5 etc.) not based on post date.

    you can see the site at http://www.carteghermez.net/wp

  6. pshah
    Member
    Posted 3 years ago #

    Hi,

    The post order does not work for me.

    I want to cahgner tyhe default order (latest post at the top) to the oldest post at the top.

    Please suggest me a fix for this.

    I have installed the admin-management-plugin but the post order does not seem to work for me.

  7. Alphawolf
    Member
    Posted 3 years ago #

    You don't need a plugin for that. Just take a look over here: http://codex.wordpress.org/Function_Reference/query_posts#Orderby_Parameters

    orderby=date & order=DESC

  8. pshah
    Member
    Posted 3 years ago #

    Hi Aplhawolf,

    Thanks for the immediate response.
    I am very much new to wordpress adn could not really understand the content of thsi link above.

    Can u please guide me on where do I need to do this change (I mean in which file).

    Thanks again.

  9. pshah
    Member
    Posted 3 years ago #

    Hi Alphawolf,

    even this order will be ASC or DESC.
    I need to sho=w the oldest post first and the latest at the end.

    Please let me know anout the location and the file whcih I need to change for this as I have no clues on php.

    Thanks.

  10. pshah
    Member
    Posted 3 years ago #

    Hi,

    Even this order will be ASC or DESC.
    I need to show the oldest post first and the latest at the end.

    Please let me know about the location and the file and which file eed to change for this as I have no clues on php.

  11. thekjub9
    Member
    Posted 3 years ago #

    http://codex.wordpress.org/Function_Reference/query_posts#Orderby_Parameters

    SHOW ME HOW ... Change how posts are ordered.

    WHY WHY THER IS NOT POSSIBLE DRAG AND DROP AS BY PAGES ?????????????

    jomala has a greate interface there ju just click up and down on posts as by this plugin (with pages)....

    why is this possibility not there ???? no code editing I just want to drag posts to be in order ... easy and simple

  12. esmi
    Forum Moderator
    Posted 3 years ago #

    Please don't SHOUT. It's unnecessary and does not win you any friends or favours.

  13. thekjub9
    Member
    Posted 3 years ago #

    :( it was not my purpose ... I was just soooo disapointed because I have so long looked for this ... easy administration of post and pages and reordering ... I so a joomla verion and was so inspired

  14. Alphawolf
    Member
    Posted 3 years ago #

    Post order can already be changed with the plugin itself. Just not via drag'n'drop, that's only possible for pages atm.

    In order to make custom posts order work, you have to change the post loop in your template. Per default, posts are ordered from newest to oldest.

    Just have a look at the link you posted on how to change your template.

  15. thekjub9
    Member
    Posted 3 years ago #

    so on the WP between 13000plugins is not 1 that alows you to "easily" chandge post order ? without code editing or reading 1000 words about what to do ??? ... I saw one in joomla and I understod it in 0.5s !!!! just pres up and down and gues what ... that's it ... no template editing changing nothing

    its so easy to make in admin manager plugin one click publish/unpublish but to tell go one up in the post order ...you have to go crazy

    I just dont understand that ... there are 100form plugins but not a one like this

  16. Alphawolf
    Member
    Posted 3 years ago #

    Well, you probably misunderstand something. The plugin provides the possibility already.

    However, WordPress is based on themes/templates that you have to edit a little bit in order to reflect the post order changes. That's it.

    More than that, you probably don't get that while WP is a CMS as well, it is basically a blog software. That implies having posts ordered from newest to oldest by default.

  17. thekjub9
    Member
    Posted 3 years ago #

    its greate that you mentioned CMS because that is also my answer to you ... a blog is based on posts orderd by date but if WP wants to be a good CMS based on CONTENTmanagementsoftware ... you have to be able to manage the content set order of posts as you would like to have it !!!!
    because in CMS are some posts just more important than other ... or you dont agree with me ??
    honestly do you think that if there would be possibility to just drag and drop to change post order there would be one person protesting against it ?

  18. thekjub9
    Member
    Posted 3 years ago #

    sorry lets get to something usefull ...

    query_posts( 'orderby=title&order=DESC' );
    - can you tell me where to add it exactly ?
    - if I select DESC ... than the add number in the last column in posts interface will change its order ?

    query_posts( 'p=7' );
    - I think this will order according to ID but all posts or just a post ID 7 ?

  19. Alphawolf
    Member
    Posted 3 years ago #

    honestly do you think that if there would be possibility to just drag and drop to change post order there would be one person protesting against it ?

    To be honest, I think let's say 98% of all WP users are using posts in a chronological order (which is default and doesn't require template changes). Having content in a certain order and hierarchy would most likely be organized as pages. You seem to be doing something special (why order blog posts other than by date?), hence template changes may be needed. It's like that in most CMS.

    Just change
    query_posts( 'orderby=title&order=DESC' );
    to
    query_posts( 'orderby=menu_order&order=ASC' );

  20. thekjub9
    Member
    Posted 3 years ago #

    ok and what about if you have 5 categories and you make new posts in each of them but than you have one ! you want to be always on top ? and after month you want to change the top post of each category.

    maybe I didnt discover a better solution yet

  21. pshah
    Member
    Posted 3 years ago #

    Please let me know that in which php file in the WP directory, will I find

    query_posts( 'orderby=title&order=DESC' );

    which needs to be replaced by:-

    query_posts( 'orderby=menu_order&order=ASC' );

    Please guide me as I have no idea on php.

  22. Alphawolf
    Member
    Posted 3 years ago #

    It's in your template's index.php file. If not, you have to add it before the loop starts.

  23. pshah
    Member
    Posted 3 years ago #

    When you say template's index.php.. whcih of the below mentioned file is it.

    I have multiple index.php at the following locations:-

    - wordpress/index.php (empty)
    - wordpress/wp-admin/index.php
    - wordpress/wp-content/index.php
    - wordpress/wp-content/themes/index.php
    - wordpress/wp-content/themes/suffusion/index.php
    - wordpress/wp-content/plugins/index.php

    Please let me know on which particular index.php, the above change should be made.

  24. pshah
    Member
    Posted 3 years ago #

    In none of the above mentioned index.php the following lines of code exist:-

    query_posts( 'orderby=title&order=DESC' );

  25. Alphawolf
    Member
    Posted 3 years ago #

    If it is not present, add it to the file in:

    wordpress/wp-content/themes/index.php

  26. thekjub9
    Member
    Posted 3 years ago #

    alphawolf pls ... i dont know how "the loop" begins

    can you wrote me the syntax ?

  27. Alphawolf
    Member
    Posted 3 years ago #

  28. thekjub9
    Member
    Posted 3 years ago #

    Alphawolf ... why post drag and drop is not possible by you

    in this plugin it is possible

  29. thekjub9
    Member
    Posted 3 years ago #

    <?php
    get_header();
    if (have_posts()) :
       while (have_posts()) :
          the_post();
          the_content();
       endwhile;
    endif;
    get_sidebar();
    get_footer();
    ?>

    where to put query_posts( 'orderby=title&order=DESC' );

Topic Closed

This topic has been closed to new replies.

About this Topic