Categories from front-end, checkbox selection doesn’t work

You changed the checkbox’s name attribute value. You should use the same name value: terms[$taxonomy][] This should fix the code: if (is_taxonomy_hierarchical($taxonomy)) //$out .= “<input class=”{$term->term_taxonomy_id}” type=”checkbox” value=”{$term->term_taxonomy_id}” name=”{$term->term_taxonomy_id}” /> {$term->name}<br />”; $out .= “<input class=”{$term->term_taxonomy_id}” type=”checkbox” value=”{$term->term_taxonomy_id}” name=”terms[{$taxonomy}][]” /> {$term->name}<br />”; else // $out .= “<input class=”{$term->term_taxonomy_id}” type=”checkbox” value=”{$term->name}” name=”{$term->name}” /> {$term->name}”; $out .= … Read more

Facebook ‘Share’ and ‘Like’ on individual posts

Install ‘Simple Facebook Connect’ Plugin. Go to ‘Simple Facebook Connect’ under ‘Settings’ in WordPress Admin. Configure the plugin. There is a help tab to help you. Enable ‘Like Button’ and ‘Share Button’ modules. Change the ‘Like Button Settings’ according to your requirements. You are done. More Info This plugin is from Otto. Visit this plugin … Read more

Localise settings section headline

Localize the headings in your initial array: $sections = array( ‘notifcations’ => __( ‘Notifications’, ‘your_text_domain’ ), ‘updates’ => __( ‘Updates’, ‘your_text_domain’ ) ); foreach ($sections as $section => $header ) { add_settings_section( $section .’_section’, $header, array( $this, ‘disable_callback_warnings’ ), ‘sgnc’ ); }

Saving custom data via ajax with nonces

I don’t see any is_admin conditional statement which is why you should include it in your snippet so we can properly assess what you are attempting to do outside of the obvious question. Either way a nonce should be mandatory. That function that receives and processes your AJAX request/response should also verify your nonce to … Read more