3 reputation
3
bio website
location
age
visits member for 1 year, 4 months
seen Dec 16 '13 at 17:03

Dec
10
comment Change permalink based on post category
Thanks, I didn't think of that. This would be a great idea if I were starting a site from scratch. The part that makes my situation sticky is that the site already has a few hundred posts, so changing the permalink based on their current category would be ideal.
Dec
10
asked Change permalink based on post category
Jun
13
comment Paginate pages with dynamic query
I will give this a go and see what happens. Currently I pass an array of fields like so: $arrays=array( array( 'key' => 'attraction_type', 'value' => $attraction_type, 'compare' => 'LIKE' ), ... more arrays where the variable corresponds to the field value. Then I query the posts and filter out the ones that don't have the selected checkbox amenities. Previously I passed the checkbox array to my meta_query array and it weighed the loadtime down and crashed the site.
Jun
13
comment Paginate pages with dynamic query
I will definitely add get_permalink(), thanks for catching that. I never thought about passing my meta key/values to the link itself. The main problem with that is my search form has checkboxes so I am actually passing the meta_query an array that contains all fields of the form some(checkboxes) being arrays themselves.
Jun
13
comment Paginate pages with dynamic query
Edit: Added my code
Jun
13
revised Paginate pages with dynamic query
added 1916 characters in body
Jun
13
asked Paginate pages with dynamic query
Jan
4
awarded  Editor
Dec
17
awarded  Tumbleweed
Dec
10
awarded  Scholar
Dec
10
accepted WP_Query meta compare must include ALL array values
Dec
3
comment WP_Query meta compare must include ALL array values
I saw some posts that were related but none that actually explicitly answered my question. From what I gathered doing a loop and excluding posts based on their meta is the only solution.
Dec
3
asked WP_Query meta compare must include ALL array values