Where to place custom functions?

Organize your code by its purpose: If it creates output on the front end and requires changes in your theme’s style sheet – it belongs to the theme. You don’t have to put everything into the functions.php, split he code into several files if it helps. For example like this: // extra functions just for … Read more

Let user subscribe to specific categories

You can give them this url http://www.example.com/?cat=42&feed=rss2 This one if permalinks are enabled http://example.com/category/categoryname/feed Replace the site url & also the cateogries id or slug with the correct one UPDATE IN RESPONSE TO COMMENT Display a list of categories to the user maybe with wp_dropdown_categories. Save the id of the category the user subscribed to … Read more

Can I use a form in a dashboard widget?

There are two options to use forms in a dashboard widget: Use the parameter control_callback. See the Codex wp_add_dashboard_widget( ‘my_id’, // $widget_id ‘my_name’, // $widget_name ‘my_render_widget’, // $callback ‘my_control’ // $control_callback ); function my_control() { // print some form elements, WordPress will handle the <form> tag. } If you want to use a form in … Read more

Advice and plugins against Malware [closed]

WordPress is inherently quite secure software, because of open source, extremely wide installation base and reasonably fast security updates. There is no such thing as security plugin that magically increases security, while causing no conflicts. Security plugins either act to monitor situation and inform you after the fact (important, but it’s not prevention measure) or … Read more