Looking for a SQL statement
-
Hello everybody,
who can help me please: I’m looking for a SQL statement to get a post for a specific language. Usually, I’m using get_posts, but in this specific case I need to get a post in an ajax-call. Here I’m using the SHORTINIT code to speed-up the call. The problem is now, that I have access to get_posts anf wp_query but the plugins (like Polylang) are not loaded.
This results in getting the posts but all languages. I guess I should write a SQL statement with wp_terms table etc. but I don’t know how.
Does anybody can give me support please?
Thank you an best regards,
Lars
- The topic ‘Looking for a SQL statement’ is closed to new replies.