WordPress.org

Ready to get started?Download WordPress

Forums

Using Query Posts, how do I get My Page Order to work (5 posts)

  1. Rebecca Markowitz
    Member
    Posted 4 years ago #

    I am using a query post, as opposed to wp_list_pages. I have the option of orderby. It is currently set to menu_order but doesn't reflect My Page Order. Please help!

    Thanks in advance,
    Rebecca

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

  2. froman118
    Member
    Posted 4 years ago #

    becca,

    I've had one other user a couple years ago ask for this and we came to the conclusion that it was easier to just use Pages. Posts and Pages are essentially identical except for one thing, Posts are meant to be sorted chronologically.

    What are you trying to do? Maybe there's a workaround. You can also check out the postMash plugin from the author of pageMash which does the same thing as My Page Order. I started a My Post Order plugin, but stopped short of publishing it because of the lack of demand.

    http://wordpress.org/extend/plugins/postmash/

  3. Rebecca Markowitz
    Member
    Posted 4 years ago #

    Hi, thanks for responding so quickly! I'm trying to list the subpages of a page and add custom fields output under each one so I need to split the information. I'm using this code:
    <?php
    $args = array(
    'post_type' => 'page',
    'numberposts' => 40,

    'sort_column' => 'menu_order',
    'order' => 'DESC',
    'post_status' => 'publish',
    'post_parent' => 84, // any parent
    );
    $attachments = get_posts($args);

    but it's not reflecting the MyPageOrder order.

    Any help would be amazing!!!

  4. froman118
    Member
    Posted 4 years ago #

    becca,

    Instead of 'sort_column' try 'orderby'. It looks like get_posts and wp_list_pages have different parameter names for ordering.

    Andrew

  5. Rebecca Markowitz
    Member
    Posted 4 years ago #

    Thanks Andrew!!
    The below code pretty much worked except that I don't know how to style the results into 2 columns. Right now it alternates between left and right columns. I need to have A-L in the first column and M-Z in the second column. Any idea how to create multiple columns for pages that are alphabetical? I know dagon design has a plugin but it's only for links and categories. Thanks for all your help!

Topic Closed

This topic has been closed to new replies.

About this Topic