WordPress.org

Forums

Miniposts
[resolved] Random miniposts display (2 posts)

  1. ElectricOwl
    Member
    Posted 4 years ago #

    Love Miniposts but there is one function that I need which is to randomly display one or more of the posts in the widget.

    Is there a simple hack I can apply to the widget code?

    http://wordpress.org/extend/plugins/miniposts/

  2. ElectricOwl
    Member
    Posted 4 years ago #

    It's OK. I edited the miniposts query to be
    ORDER BY RAND() instead of ORDER BY post_date DESC. Putting in an option for random display is the next step.

    Thanks,
    Ian

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Miniposts
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic