Let's say we started a custom loop:
<?php $custom_posts = new WP_Query(); ?>
<?php $custom_posts->query('post_type=post&category=Uncategorized&orderby=epo_custom'); ?>
<?php while ($custom_posts->have_posts()) : $custom_posts->the_post(); ?>
(...)
I want to enable users to change for instance, the category part. In other words, something like this:
<?php $custom_posts->query('post_type=post&category=$user_selected_category&orderby=epo_custom'); ?>
So that value will be saved and the user will see only posts of that category each time he/she logs in.
Any suggestions to accomplish that?
EDIT:
I'll be getting the user preference at the time of his registration? Example: Lets say the user registers, and select his/her preferred category as 'business'.
