• ## Can the mods please *delete* this same question that I asked earlier in the hacks section, I posted it there in error.##

    I have a custom category created with custom type posts assigned to that category.

    Everything works fine, when you view the category, we get the list of custom posts in DATE ORDER.

    What I need is a hack that will always display this listing of custom posts in RANDOM order. I think this can be done without a plugin?

    I’ve tried everything, e.g. creating a new query object and setting orderby to rand. Unfortunately I just can’t get it working so that it displays the posts in a completely random order.

    I’m thinking that I need to delve deeper and back to the original SQL query.

    Any guidance on this would be much appreciated.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter morpheus99

    (@morpheus99)

    Maybe the only solution to this problem is a core hack? I’m reluctant to do that, but if it’s the only way, then so be it.

    Thread Starter morpheus99

    (@morpheus99)

    OK I’m thinking out loud here, but I’m wondering if the main loop on the page needs to be intercepted or does the random sort need to be implemented before the loop even begins? Any thoughts?

    Thread Starter morpheus99

    (@morpheus99)

    I’m still perplexed on this one. Has anyone had a chance to think about this one yet?

    Thread Starter morpheus99

    (@morpheus99)

    OK, if anyone can suggest a plugin to handle this, that would be great.

    Thread Starter morpheus99

    (@morpheus99)

    Does this have everyone perplexed? I really need an answer on this please.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Random sorting of custom posts within the loop of a custom category’ is closed to new replies.