WordPress.org

Support

Support » Plugins and Hacks » My Post Order » [Resolved] [Plugin: My Post Order] Post Order on Subpages

[Resolved] [Plugin: My Post Order] Post Order on Subpages

  • Hey mate,

    I’m working on a site that offers courses that need to be listed in a particular order of ‘value’. Your plugin works great on the main courses page, and I was able to manually sort the list to what I needed using:

    $postslist = get_posts('numberposts=100&section_name=courses');

    However when I go to a subpage, and use that exact same code it has no affect.

    Courses page URL:
    homepage/courses

    Subpage URL:
    homepage/locations/particular_franchise/courses

    Is this limited in site hierarchy or am I making a local mistake?

    Cheers.

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Nevermind!

    I was using this in the top page:

    $postslist = query_posts('numberposts=100&section_name=courses');

    as opposed to this in the subpage:

    $postslist = get_posts('numberposts=100&section_name=courses');

    Coding 101 error, my bad. Other than that it works a charm and I’ve put it in our standards to use for other client work. Cheers.

    Plugin Author Kapil Chugh

    @kapilchugh

    Great!! 🙂

    Plugin Author Kapil Chugh

    @kapilchugh

    Forgot to mark this topic as resolved.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Resolved] [Plugin: My Post Order] Post Order on Subpages’ is closed to new replies.
Skip to toolbar