646 reputation
926
bio website pixeline.be
location Brussels, Belgium
age 40
visits member for 4 years
seen Aug 28 at 22:47
I'm a self-trained web designer / web developer and since recently web usability teacher. I live in Belgium.

Aug
28
comment Fetch post meta in the same query as the main loop
@bonger that would trigger a sql query for each entry in the loop. That's what i want to avoid. In the end, i've used a raw sql query with get_results().
Aug
28
comment Fetch post meta in the same query as the main loop
Yes, that's exactly what i want.
Aug
28
comment Fetch post meta in the same query as the main loop
the double sorting I can live without. It's the inclusion of the meta_key in the sql results that I'm seeking to know how to do. I've now included the raw SQL that i would like to express in Wordpress' query logic.
Aug
28
revised Fetch post meta in the same query as the main loop
added 342 characters in body
Aug
28
revised Fetch post meta in the same query as the main loop
added 400 characters in body
Aug
28
asked Fetch post meta in the same query as the main loop
Jul
22
awarded  Taxonomist
Jul
2
awarded  Curious
Jun
27
awarded  Notable Question
May
6
awarded  Popular Question
Mar
20
awarded  Popular Question
Feb
12
comment Query the database after get_header() has been included
From what i've read here (codex.wordpress.org/… ) you are doing it right: you use the $wpdb object. Since you are using custom tables, there isn't much you can reuse from the wordpress querying methods.
Feb
12
accepted List custom taxonomies associated to an author's posts
Feb
12
comment List custom taxonomies associated to an author's posts
Hello Shazzad, Thank you it works quite nicely, except that if a tag has been used in 2 posts, it will appear twice. But you've sent me in the right direction, so i'll pick this up as the right answer.
Feb
11
answered Query the database after get_header() has been included
Feb
11
comment different single.php for different page templates
It appears to me that you need to know what was the visitor coming from before landing on a specific page. You could use $_SERVER['HTTP_REFERER'] for that, but it's not 100% reliable as some browsers do not send the required header (see: stackoverflow.com/questions/165975/determining-referer-in-php ). Or you could, on the link leading to the template, add a query var that you can then use to identify the origin. For example: ?origin=page-second and on the page $_GET['origin'] == 'page-second' ...
Feb
11
asked List custom taxonomies associated to an author's posts
Feb
4
awarded  Popular Question
Nov
11
revised SOAP parsing WSDL error (“wp_remote_post() failed”)
added 189 characters in body; edited tags
Nov
11
revised SOAP parsing WSDL error (“wp_remote_post() failed”)
added 189 characters in body; edited tags