WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is it possible to specify the category people can choose to subscribe to in the Subscribe2 (Wordpress Plugin) widget?

share|improve this question
I slightly edited your text so that it's (hopefully) better to read. Just check if it's correct and is really asking what you're looking for. – hakre Nov 16 '10 at 20:06
Can you please review your question? Could you find an answer on your own so far? – hakre Dec 25 '10 at 13:24
have you asked the original plugin author about that? – hakre Feb 4 '11 at 13:43
up vote 2 down vote accepted

there is an addon for subscribe2 that allows that called

TT Subscribe2 Front End Plugin

share|improve this answer
Are you the author? If so, you must disclose your affiliation in your answers. Anyway, welcome to WordPress StackExchange. :) – toscho Feb 15 '12 at 4:58
Thanks for welcoming me... I'm a reader of this site since a looong time! I'm not really the author... I'm the site admin and Stiofan, who's my business parter on Theme Tailors is the author. – paolo Feb 15 '12 at 10:55
This looks like something I'd like to buy - but sadly the demo page does not seem to work. IF this will get fixed - I'd gladly try it out. – Tal Galili May 30 '12 at 15:00

From quick look at plugin's description and code there doesn't seem to be such option. Category management mostly refers to controlling them in admin area.

Also see Plugin's FAQ - it lists its' community support page at GetSatisfaction and option to receive paid support from developer.

share|improve this answer

just been looking into this, hope this helps. It's early dev, so not fully gone through it and tested, but seems to work, so hopefully it may help you in the right direction (well, one direction anyway)..

How it works: it basically strips the cat entries from the user_meta, then re-adds them based on the selections. It hooks into the user registration process so this may screw up any other user registrations! (my site is only for registering through Subscribe2 so i haven't bothered isolating it to this)

in the register_form.php in your theme (copy the one from the template dir in plugins into your theme)

add in a cat list:

// preselect categories

echo '<p>Select Categories</p>';
foreach($categories as $category) {
    echo "<input type='checkbox' name='cats[]' value='$category->term_id' />";
    echo $category->cat_name;
    echo '<br>';


then in your functions, add:

// allow preselection of categories on signup through Subscribe2 //

add_action( 'user_register', 'subscribe2_registration_save', 10, 1 );

function subscribe2_registration_save( $user_id ) {

global $wpdb;

// delete the cats to start with
$wpdb->query("DELETE FROM wp_apb_usermeta WHERE user_id = '".$user_id."' AND meta_key LIKE 's2_cat%'");

// add new cats
    $cats = $_POST['cats'];
    $str = '';
    foreach($cats as $cat){
        $str .= $cat.',';
        $query = "INSERT INTO wp_apb_usermeta (user_id,meta_key,meta_value) VALUES ('".$user_id."','s2_cat".$cat."','".$cat."')";
        //echo ('<pre>' . print_r($query,true) . '</pre>');
    $str = rtrim($str, ",");

// update the subscribed list
$query = "UPDATE wp_apb_usermeta SET meta_value = '".$str."' WHERE meta_key = 's2_subscribed' AND user_id = '".$user_id."'";
//echo ('<pre>' . print_r($query,true) . '</pre>');

//echo ('<pre>' . print_r($results,true) . '</pre>');
//echo ('<pre>' . print_r($_POST,true) . '</pre>');
//die ('<pre>' . print_r($user_id,true) . '</pre>');

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.