custom contact form no longer working (because of 3.2?)
As suggested by Bainternet, prefix all the field names.
As suggested by Bainternet, prefix all the field names.
You can just alter the default user profile fields and add/remove whatever you want or use a plugin that does so. Alternatively you can use plugin like gravity forms or wufoo.
Read the WordPress codex, specifically http://codex.wordpress.org/Plugin_API and if you are looking to create tables read http://codex.wordpress.org/Creating_Tables_with_Plugins. Make sure you remove them if the plugin is uninstalled.
I’ve figured out the solution to my problems. Here’s what I did… Note: This is considering the posts, thus comments, are under the ‘Article‘ post-type, which thus create the permalink such as this: site.com/article/post-name/#comments. Adjustments should be made for other uses. To fix problem #1 & #3: if ( !is_admin() ) add_filter(‘get_comment_link’, ‘my_comment_post_redirect’); function my_comment_post_redirect($location){ … Read more
Not sure where you are placing the code as you don’t say – but you will need to edit the WordPress signup code / file and add your random string code in there and then hide the input for the sub-domain or set it to disabled and set it’s value to the random string. You’ll … Read more
From the Codex: Categories need to be passed as an array of integers that match the category IDs in the database. This is the case even where only one category is assigned to the post. Currently you giving it a string of the category ID. Try: $category = array(intval($_POST[‘cat’]));
Yes, it’s possible. WordPress uses a relational database and you’re free to add tables to it. As a warning – you will need to create new functions/classes to work with your new tables. WordPress’ built in functions will probably not work with new tables. As a side note, new content types such as reports and … Read more
you should use return false; at the end of the js function send_invitation() to prevent default reload action
I worked it out. add_action( ‘user_profile_update_errors’, ‘validate_steamid_field’ ); function validate_steamid_field(&$errors, $update = null, &$user = null) { if (!preg_match(“/^STEAM_[0-5]:[01]:\d+$/”, $_POST[‘_bbp_steamid’])) { $errors->add(’empty_steamid’, “<strong>ERROR</strong>: Please Enter a valid SteamID”); } }
Change ‘name’ to something else. Because name is a reserved keyword in WordPress universe. Check this and look for ‘name’ here.