Custom forms with HTML

In theory, this should work just fine if you are putting the code directly into a theme file, and not into a post body or something. However, it is very dependent on your site’s setup. Here are some things to watch out for: Permalink structure: if using GET requests to process the form, test to … Read more

Exclude category from drop down list form

try: <?php $cat_to_EXCLUDE = 50; $cate_id = retrieve_cat_data(true); $cate_name = retrieve_cat_data(false); for ($i = 0; $i < count($cate_name); $i++ ) { ?> if ($cate_id[$i] != $cat_to_EXCLUDE){ <option value=”<?php echo $cate_id[$i]; ?>”><?php echo $cate_name[$i]; ?> </option><?php }} ?> update: if you search your theme’s functions.php file i bet you will find a function named retrieve_cat_data anyway … Read more

In admin panel, use a form to create a post?

You could create a custom metabox with those items as custom fields and then either remove support for the editor or hide it with CSS. Then output the post meta instead on the front end. Be aware that if you remove support for the editor, you’ll have funky behavior with media attachments. Edit: If you … Read more

wordpress forms submit

To create form in wordpress there are two ways either use plugins or custom templates. If you want good plugin to create form then contact for 7 is the best. Url: http://wordpress.org/extend/plugins/contact-form-7/ Website: http://contactform7.com/ Documentation: http://contactform7.com/docs/ To create custom template: Url: http://codex.wordpress.org/Pages#Page_Templates

Where this validating message come from?

Could you please show us your code or better yet provide an example? Sight unseen, my preliminary thought based on your description is that you are using some of the new HTML5 form elements and/or attributes. In particular, the required attribute would cause the error that you are seeing depending on the browser that you … Read more