342 reputation
1410
bio website maorb.info
location
age
visits member for 3 years, 11 months
seen Nov 16 at 15:40

Jun
30
accepted Custom query with orderby meta_value of custom field
Jun
30
accepted Modify main loop query for paged and meta key
Jun
30
awarded  Scholar
Jun
30
accepted Get search term not on searh results page?
Jun
19
asked How to find all links between pages
Jun
19
awarded  Commentator
Jun
19
comment Get posts by menu ID
@Jules, you are right that in that way there will be a db query for each post. You can make it more efficient by something like this: foreach ($nav_items as $obj) { $objid = $obj->object_id; $postobjArr[] = $obj->object_id; //save array of post ids } $postobj = get_posts(array('post__in' => $postobjArr)); //get all posts in one time and do stuff with them..
Jun
17
answered Get posts by menu ID
May
27
awarded  Student
May
23
asked Get search term not on searh results page?
May
22
comment How to highlight search terms without plugin
What about highlighting the search term after the user clicks on the single and goes inside the post? Then the get_search_query() returns an empty string
Apr
24
comment Custom query with orderby meta_value of custom field
Well, yes, this is the old method for doing this query and it appears to be working for this specified one. Anyway, for more complex queries, it won't work. I found this is a known issue that is being taken care of, details can be found in trac tickets #15031 and #17065
Apr
23
asked Custom query with orderby meta_value of custom field
Apr
22
answered Can't add a class to links in the visual editor since WP 3.1?
Apr
22
awarded  Supporter
Apr
10
answered How do I display a user specific content?
Mar
29
awarded  Enthusiast
Feb
3
awarded  Teacher
Jan
29
comment Modify main loop query for paged and meta key
@goldenapples, please see below I added some code that might complete your answer. Thanks
Jan
29
answered Modify main loop query for paged and meta key