• Resolved flizzywp

    (@flizzywp)


    Hey,
    if you take a look at the url I provided, you can see that “Page 10” is shown directly below “Page 1”, because both numbers start with “1”.

    Is there a way to get “Page 10” below “Page 9”?

    [ Redudant link removed ]

    • This topic was modified 6 years, 11 months ago by Jan Dembowski.

    The page I need help with: [log in to see the link]

Viewing 12 replies - 1 through 12 (of 12 total)
  • Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    Side note: don’t post the link in the post. It looks like you’re a spammer when you do that.

    Thread Starter flizzywp

    (@flizzywp)

    Sorry, I did not have the intention to look like a spammer. Thanks for removing.

    Thread Starter flizzywp

    (@flizzywp)

    So is there a solution for this? Can I filter for 1-9 in a tag and then show 10-19 in the next tag? Anything like that?

    Plugin Author caterhamcomputing

    (@caterhamcomputing)

    The best solution would probably be to order the pages within the WordPress dashboard to be in the order that you want them to appear and to sort by menu_order.

    I personally use the Simple Page Ordering plugin to speed this up, as you can just drag and drop the pages to put them in order – see https://en-gb.www.ads-software.com/plugins/simple-page-ordering/.

    Doing things this way will also mean that any other themes or plugins that come up with a list of pages should also show them in the same order.

    In theory, it would be possible to order the pages by looking at the value a custom field … at the moment, you’d need to use the ccchildpages_widget_pages_args, ccchildpages_list_pages_args and/or ccchildpages_query_args filters within the plugin to add the relevant values to orderby and meta_key … I may add these ordering options to a future version of the plugin, but I think that most of the time actually ordering the pages would be the better option.

    Plugin Author caterhamcomputing

    (@caterhamcomputing)

    … just another thought (and I haven’t tried it out), but if you are ordering by the page name then padding the short page numbers with spaces may be a quick workaround. (e.g. instead of “Page[space]1”, make it “Page[space][space]1”)

    Thread Starter flizzywp

    (@flizzywp)

    Thanks for your answer. Actually I have no idea what menu order is or what it refers to. My pages are sub pages of another page, but they are not in a menu. There is also nothing to drag and drop.
    Is there no way to show only 1-9 and then 11-19 in the next tag?

    • This reply was modified 6 years, 11 months ago by flizzywp.
    • This reply was modified 6 years, 11 months ago by flizzywp.
    Plugin Author caterhamcomputing

    (@caterhamcomputing)

    Do your pages show in the order you would like them to when you look at them in the WordPress Dashboard?

    If so, make sure that the orderby parameter is not present in your shortcode or set orderby="menu_order".

    If they do not show up in the order you would like them to in the WordPress Dashboard I would suggest using the plugin mentioned in my previous comment to order them – that is what allows you to drag and drop the pages into the correct order (assuming they are actual pages or custom fields that use a hierarchy).

    At present, this plugin does not allow sorting by tags or other meta fields … you can always use the exclude parameter to exclude certain results …

    Thread Starter flizzywp

    (@flizzywp)

    Thank you. Are there full instructions anywhere, because in the Plugin screenshot section I don’t find anything about “exclude” and I don’t know how to use this tag. Can it exclude ranges or only single pages?

    The pages are not ordered as I want it in the dashboard, but I will try to apply your approach. Thank you!

    Plugin Author caterhamcomputing

    (@caterhamcomputing)

    All of the options for the shortcode are detailed at https://www.ads-software.com/plugins/cc-child-pages/

    If you order the pages within the dashboard, the plugin will show them in that order (unless you specify a different order).

    Thread Starter flizzywp

    (@flizzywp)

    Ok, that seems like the most reasonable way. I will try that, thank you.

    Thread Starter flizzywp

    (@flizzywp)

    Thank you. It worked an was pretty straight forward. Thanks for taking your time!

    Plugin Author caterhamcomputing

    (@caterhamcomputing)

    You are welcome … glad that it’s all working for you now ??

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Child Pages Order’ is closed to new replies.