Tagged Questions

The tag has no wiki summary.

learn more… | top users | synonyms

6
votes
3answers
2k views

How should one implement add_settings_error on custom menu pages?

The Professional WordPress Plugin Development book explains in detail how to properly use the Settings API, and it also demonstrates how to add Menus and Submenus, but unfortunately it doesn't provide ...
1
vote
1answer
618 views

How can i add validation to this login form with out it redirecting to the wp-login.php page

Im using the code as posted on the website below, to create a hard coded login form. http://www.wprecipes.com/add-a-login-form-on-your-wordpress-theme What would be the best way of incorperating some ...
1
vote
1answer
1k views

Creating custom AJAX requests

My question pertains to where I should create an ajax function that I'd like to call from my page view. I am using a jQuery validator on a custom form that should check the inputted zipcode against ...
2
votes
3answers
432 views

wordpress widget textbox in the sidebar

I have a normal textbox widget that I am using in certain sidebars. The text widget generates a div within a ul. Is there anyway to make the widget generate another ul li instead? ...
2
votes
1answer
1k views

Server side validation for Contact Form 7 [closed]

I'm trying to use contact form 7 on my site. The only server side validation that it seems to do is check if required fields have been entered. Isn't there a danger if someone sends several MB of ...
1
vote
2answers
4k views

wordpress site validation errors

when I made my wordpress site validate I got some strange errors like Error Line 6, Column 52: Bad value profile for attribute rel on element link: Keyword profile is not registered. Error Line 12, ...
1
vote
3answers
2k views

Require a Custom Taxonomy to be checked

I have a custom taxonomy, "position", with multiple terms for a custom post type, "employee" in the admin. I want to validate the form to require a position to be selected when you save/update a post. ...
0
votes
1answer
539 views

Display all WP Errors together during form validation

I have a custom front end page where users can post from. All works fine but the i want if more than one field is empty then the errors for all empty fields should show all together. Right now the ...
2
votes
2answers
357 views

Data Validation

I'm using Wordpress as CMS and have a checkout page where info is inserted into the db using $wpdb->insert. I have 2 questions: Is 'sql injection' already a part of that function or do I need to ...
1
vote
1answer
1k views

Duplicate attribute class causing site validation error

The following bit of code results in a duplicate attribute site validation error. This template script: <div class="clearfix" <?php post_class() ?>> produces this source output: ...
4
votes
1answer
1k views

Does wp_insert_post validate the input?

If I use the wp_insert_post in a plugin, will I have to check the content for SQL injection problems and XSS or will the wp_insert_post function do this for me?
0
votes
1answer
142 views

What is wp_check_invalid_utf8?

The following function checks option, if *blog_charset* is not utf8, than return original string. What is the purpose of this? function sc_check_invalid_utf8( $string, $strip = false ) { $string ...
7
votes
3answers
5k views

Sample code for validating custom metabox?

I've found very little on this site or in Google searches for examples of validating metabox custom fields. If anyone wants to give examples, here are some cases that would be useful 1) Date entered ...
5
votes
3answers
5k views

don't publish custom post type post if a meta data field isn't valid

I have a custom post type (CPT) called event. I have a meta box for the type with several fields. I would like to validate some fields before publishing an event. For example, if an event's date is ...
0
votes
1answer
137 views

Always display a picture even if the link is broken?

What I would like is to have a sort of fall back photo so I don't get red Xs.. Something like "photo unavailable please come back later" Is there a way to check if the image path is valid and if not ...
2
votes
3answers
437 views

validate a metabox based on the category that is selected

Ok Let's say I have 2 Categories. If a user select category A, they have to fill in metabox A and similarly for category B, it's metabox B. So my question is, I want to do a validate check, whereby if ...
2
votes
2answers
2k views

Frontend Post Form Validation

OK, there have been several posts on here about frontend posting forms. I've read them all, which got me to where I am. Now every form I come across has some form of validation which seems to check ...
1
vote
3answers
657 views

stray <p> elements

I coded a wordpress shortcode for columns that basically inserts html via a shortcode. Problem is that wpautop adds stray p elements that renders the code invalid. To test put this into your ...
2
votes
2answers
1k views

Correct Approach for Validating Custom Field Input

I have a custom post type with several custom fields. I am looking to do some validation on these fields because they will be used downstream by other services. So, it is important that it can't be ...