[wp-hackers] Compare "products"
Gerasimos Tsiamalos
tsiger at gmail.com
Wed Jun 8 14:29:25 UTC 2011
I see. Yeah it works like this as well and i'd never thought of array_map :)
Thanx
Any ideas about the pagination?
On Wed, Jun 8, 2011 at 5:05 PM, Rilwis <rilwis at gmail.com> wrote:
> $products_to_compare = get_query_var('productIDs');
> $products_to_compare = array_map('intval', $products_to_compare);
>
> $products_query = new WP_Query(array('post__in' => $products_to_compare));
>
--
Best Regards
--
*Gerasimos Tsiamalos*
Web Developer
8 A.Papandreou str, Thessaloniki, 57010
t: +30 2310 358548
twitter: @tsiger <http://www.twitter.com/tsiger>
More information about the wp-hackers
mailing list