Child Pages Order
-
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 8 years, 2 months ago by
Jan Dembowski.
The page I need help with: [log in to see the link]
-
This topic was modified 8 years, 2 months ago by
-
Side note: don’t post the link in the post. It looks like you’re a spammer when you do that.
Sorry, I did not have the intention to look like a spammer. Thanks for removing.
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?
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.ww.wp.xz.cn/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_argsand/orccchildpages_query_argsfilters within the plugin to add the relevant values toorderbyandmeta_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.… 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”)
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?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
orderbyparameter is not present in your shortcode or setorderby="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
excludeparameter to exclude certain results …-
This reply was modified 8 years, 1 month ago by
caterhamcomputing.
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!
All of the options for the shortcode are detailed at https://ww.wp.xz.cn/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).
Ok, that seems like the most reasonable way. I will try that, thank you.
Thank you. It worked an was pretty straight forward. Thanks for taking your time!
You are welcome … glad that it’s all working for you now 🙂
-
This reply was modified 8 years, 1 month ago by
The topic ‘Child Pages Order’ is closed to new replies.