Forum: Global Maps

This forum is closed for new topics. However, you can still search for a solution in the old topics. For technical support related to the Global Maps premium extension please open a new premium support ticket.

[Resolved]Hook for custom query

Home Forums Global Maps Hook for custom query

This topic contains 1 reply, has 2 voices, and was last updated by  Eyal Fitoussi 3 years, 5 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #52436

    James Cobbett
    Participant

    Hi,

    I’m using global maps on an event post type, but at the moment it shows all events (including ones that have already happened). Is there a hook I can use to pass in a meta query to the global map?

    Thanks,
    James

    #52465

    Eyal Fitoussi
    Keymaster

    Hi James,
    You can probably use the below filter to modify the WP_Query args:

    This filter together with a few others can be found in omw-global-maps/posts/includes/gmaps-query-functions.php.

    I hope that helps.

Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘Hook for custom query’ is closed to new replies.