Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author ethanhackett

    (@ethanhackett)

    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.

    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.

    @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 https://codex.www.ads-software.com/Class_Reference/WP_Query#Parameters and scroll down to Orderby.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: Post Tiles] Sorting’ is closed to new replies.