WordPress.org

Forums

Post Tiles
[resolved] Randomize tiles (4 posts)

  1. blnd
    Member
    Posted 2 years ago #

    Is it possible to randomize the tiles instead of having it ordered by latest post?

    http://wordpress.org/extend/plugins/post-tiles/

  2. ethanhackett
    Member
    Plugin Author

    Posted 2 years ago #

    You should be able to edit line 379 which looks like this.

    $the_query = $posts_query.$cat_query.'&paged='.$paged;

    And replace it with this

    $the_query = $posts_query.$cat_query.'&paged='.$paged.'&orderby=rand';

    Keep a note of what you modify in the plugin because these changes will be overwritten once you update the plugin.

  3. blnd
    Member
    Posted 2 years ago #

    Thanks ethan!

  4. ethanhackett
    Member
    Plugin Author

    Posted 2 years ago #

    Glad it helped. If you like it is love it if you could rate it. :D

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Post Tiles
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.