User Password Lost Password? 
  • Home
  • Features
  • Pricing
  • Support
    • Documentation
    • What’s New
    • Changelog
    • Support Forum
    • Contact Support
  • Account
  • Get Started
  • Home
  • Features
  • Pricing
  • Support
    • Documentation
    • What’s New
    • Changelog
    • Support Forum
    • Contact Support
  • Account
  • Get Started

Reply To: Sort mashup POIs by date

Home › Forums › MapPress Support › Sort mashup POIs by date › Reply To: Sort mashup POIs by date

June 17, 2013 at 12:49 am #12828
Chris
Keymaster

Hi Tom,

The easiest way is probably to use the ‘orderby’ parameter in your query (then you don’t need a filter).

See here for some examples:
http://codex.wordpress.org/Class_Reference/WP_Query

For example to order posts by date, descending, this should work:
[mashup query="orderby=date&order=DESC"]

MapPress is the leading Leaflet and Google Maps Plugin for WordPress.  Get the free version or try MapPress Pro for dozens of additional features.

© 2020 Chris Richardson and mappresspro.com

Do NOT follow this link or you will be banned from the site!