Support » Plugin: Simple add pages or posts » Warn that posts or pages are created alphabetically, not as listed

  • Resolved idearius

    (@idearius)


    In some cases it is important that the new posts or pages are assigned a sequential ID, according to the list that was written in the field provided to that effect.

    If you input

    test1
    test2
    test3
    test4
    test5
    test6
    test7
    test8
    test9
    test10
    testSOMETHING
    testABC

    posts will be created in this order:

    test1
    test10
    test2
    test3
    test4
    test5
    test6
    test7
    test8
    test9
    testABC
    testSOMETHING

    To have sequential IDs you should input:

    test00
    test01
    test02
    test03
    test04
    test05
    test06
    test07
    test08
    test09
    test10
    testABC
    testSOMETHING

    As the default behaviour does not match the expected behaviour (posts and pages will be created in the exact order in which they were originally listed), adding a warning message at the plugin’s admin page would be most helpful. That, or adjusting the plugin to make it work as expected.

    Except for that, the plugin works great and does save a lot of work.

Viewing 1 replies (of 1 total)
  • Plugin Author ramon fincken

    (@ramon-fincken)

    no, it might like so, but it does not work like you mentioned.

    the plugin “walks” trough each input line and performs a wp_insert_post to create the page or post.
    The plugin will not re-order the pages. It will add each page after another, creating a higher page ID every time.

    If you actually see a different order in you post or page overview .. check if the Post ID’s are “random” or asc/descending. I suspect your view is different.

Viewing 1 replies (of 1 total)
  • The topic ‘Warn that posts or pages are created alphabetically, not as listed’ is closed to new replies.