Home › Forums › MapPress Support › Separate query selections for multiple post types in one mashup › Reply To: Separate query selections for multiple post types in one mashup
If I understood, you’re trying to limit the news releases to 10 but *always* show the unit?
If so, I don’t think that’s possible because WP allows only one “posts_per_page” for the whole query. You could set “posts_per_page=-1” and get ALL news, which may not be what you want.
Or you could take a look at the WP_Query “orderby” clause. Maybe there’s a way you could order the query so the unit always appears first? I think the database will read and sort the results be limiting them to 10:
Finally, you could resort to using PHP to generate the mashup. Then you can build the POIs based on your news query and add the unit at to the beginning of the POIs array.
And yes, I’m still working on proximity search – although it might have the same problem if there are > 10 news items in the vicinity.