I'm developping a Wordpress plugin in witch I have created some custom posts and I use meta datas to link them together.
On the admin side, I want to be able to filter posts list using those relations. I guess I would need to use INNER JOIN but I don't know how.
For now all I have is :
add_filter( 'parse_query', 'mypostsfilteringfunction' );
function mypostsfilteringfunction( $query ){
// if post_type matches :
// then I need to be able to add innerjoin into $query
}
Thanks in advance for your help.
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire