Reputation
255
Next privilege 300 Rep.
Create new tags
Badges
4 13
Newest
 Critic
Impact
~25k people reached

May
20
revised Query posts using custom taxonomy and selected terms
added 131 characters in body
May
20
asked Query posts using custom taxonomy and selected terms
May
18
comment How to translate “$before” with get text in get_the_term_list?
@Chip, Yes I've accidentally left the extra parameters there, thanks for pointing out!
May
18
revised Use post object from first query in second query
added 8 characters in body
May
18
comment Use post object from first query in second query
I replaced get_the_ID($post_object->ID) with get_permalink($post_object->ID) and it works nice. Still, it's weird that the code with get_the_ID didn't act as expected.
May
18
accepted Use post object from first query in second query
May
18
comment How to translate “$before” with get text in get_the_term_list?
Thanks again Chip! I'm lost between commas, apostrophes and semicolons...
May
18
accepted How to translate “$before” with get text in get_the_term_list?
May
18
asked How to translate “$before” with get text in get_the_term_list?
May
17
revised Use post object from first query in second query
appended full code
May
17
revised Use post object from first query in second query
deleted 2 characters in body
May
17
comment load custom fields on click
Thanks @Alex, yes, I did something very similar although not that sophisticated. I'm in a middle of something right now and later today I your code a go.
May
17
comment Use post object from first query in second query
Thanks. Although echoing the ID within the second loop prints the correct ID, the list item doesn't get the desired class. Even if I just try to use your first snippet for testing, it doesn't work. Also if I try to use post__not_in with $current with the second query, the post gets listed as if nothing happened, however seeing the resulting array with print_r the exluded ID is clearly shown...
May
17
asked Use post object from first query in second query
Dec
11
comment Get all images from posts with maximum number and without featured image
@Bainternet I played around your code and and it seems to be working now. I cannot answer my own question so I copied the working snippet to my question.
Dec
11
revised Get all images from posts with maximum number and without featured image
added 1060 characters in body
Dec
11
comment Get all images from posts with maximum number and without featured image
Thanks but, still no luck: maximum execution time exceeded in... query.php on line 1924
Dec
11
comment Get all images from posts with maximum number and without featured image
Ok. I got the code working and it seems that t31os saw the problem with the it: I'm getting the same image 10x.
Dec
8
comment Get all images from posts with maximum number and without featured image
It'not working. Maximum execution time of 30 seconds exceeded in../wp-includes/query.php on line 1924
Dec
7
comment Get all images from posts with maximum number and without featured image
pastebin.com/GGW9V7Ua