Skip to content

Instantly share code, notes, and snippets.

@mingodev
Created April 16, 2020 17:38
Show Gist options
  • Save mingodev/c2cb7147a3543f4e41dd45934f139c8b to your computer and use it in GitHub Desktop.
Save mingodev/c2cb7147a3543f4e41dd45934f139c8b to your computer and use it in GitHub Desktop.
Hijack wp request
add_filter('posts_join_paged', function ($join) {
return "LEFT JOIN wpp1_postmeta ON ( wpp1_posts.ID = wpp1_postmeta.post_id AND wpp1_postmeta.meta_key = 'Date de l\'événement')";
});
@mingodev
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment