Post Tiles
Sorting (4 posts)

  1. lmilesw
    Posted 4 years ago #

    Is there an attribute that allows sorting alphabetically?


  2. ethanhackett
    Plugin Author

    Posted 3 years ago #

    There isn't. I would have to look at the code to see how it's sorting I believe it does by publish date but probably could be changed to title alphabetically. But keep in mind any changed will be lost if you change the plugin code then upgrade to a later version.

  3. brooklyncreativedesign
    Posted 3 years ago #

    Is there a way in which we could use the "Page Attributes" to set the order of the posts? I have a CPT which I enabled the "Page attributes" on the post type. Would love to be able to manually set order.

  4. brooklyncreativedesign
    Posted 3 years ago #

    @lmilesw - you can edit line #379 in post-tiles.php to adjust the query and add in a parameter to sort however you'd like. I wanted a specific order in my query, and changed the code so that I could manually select the post order based upon the number assigned through the page attributes. The code looks like this:

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

    You can see at the end, I have it sorted by menu_order, but you can also sort by author, title, date, etc. For more information on sorting attributes, go to http://codex.wordpress.org/Class_Reference/WP_Query#Parameters and scroll down to Orderby.

Topic Closed

This topic has been closed to new replies.

About this Plugin

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

About this Topic