The validation tag has no wiki summary.
0
votes
1answer
22 views
jQuery Validate wp_editor
I have a form, and in the form, I use
<?php wp_editor('', 'user_submitted_progress', $settings = array('textarea_name' => 'user_submitted_progress')); ?>
to generate a TinyMCE, rather than ...
0
votes
1answer
42 views
WordpressUser Submission Form
I have a User Post Submission form, and it has three issues, as well as one potential issue.
Here is the code that processes the form.
<?php if(isset($_POST['user_submission_form'])) {
...
0
votes
0answers
18 views
What data sanitzation function should be used to store entire source code of webpage?
What is the best data santization function to use when the entire source code of a webpage (head, body elements, etc) are going to be stored in a post meta field?
In other words, which function will ...
0
votes
1answer
129 views
Ajax Validation for reCaptcha
Background
I have a registration form that validates with AJAX using jQuery Validation Engine. The form was created using Theme My Login and contains reCaptcha which I implemented using WP-reCAPTCHA.
...
0
votes
1answer
40 views
Contact form 7 Plugin
http://www.tahititravel.com.au/site/thepage/
Here I have a form. I am using Contact Form 7 Plugin.
I have modified the CSS to suit my Design.
But When the form validates my design is ruined
How ...
0
votes
3answers
61 views
Validating widget's configuration data on Admin page
I have a simple widget that needs its width and height set by the user, so that it is displayed properly on the blog.
The thing is: on the Administrator/Appearance/Widgets page, if the admin user ...
1
vote
2answers
52 views
w3c validation problem - Twitter share button pulling content
I have this twitter share button that pulls 100 characters from the content of the post and its URL for the twitter share.
<a class="popup"
href="http://twitter.com/share?url=<?php
...
0
votes
0answers
25 views
Theme Options, Check box not unchanging
Every Option in my theme option will save, weather you enter text, delete text, click a radio box or even check box. How ever, once check boxes are clicked they do not seem to un-check.
I have ...
0
votes
1answer
41 views
How long does plugin review usually take?
WordPress says that plugins are manually reviewed within a "vaguely defined amount of time". What's the experience? How long does this take, on average?
0
votes
1answer
53 views
How to validate inputs with filter in register_setting callback
I now have this function that works well :
function wpPartValidate_settings( $input ) {
if ( check_admin_referer( 'wpPart_nonce_field', 'wpPart_nonce_verify_adm' ) ) {
// Create our array for ...
1
vote
1answer
58 views
How to validate register settings array
I would like to know how to perform a proper validation with the register_setting() callback function.
Here is a sample part of my code I want to work with:
register_setting( 'wpPart_options', ...
0
votes
1answer
257 views
How do I edit wp_head and/or functions.php to remove rss-feed which isnt used and dont validate?
When using w3.org's validation tool Unicorn I get the following error/warning:
URI: http://energyshop.se/hem/feed/
This feed does not validate.
After looking into my source its there crystal clear ...
0
votes
1answer
105 views
Wordpress live, custom text box validation, how to?
I am teaching British Sign Language on my website, on the alphabet section I have an image of 'signs' that spell out a word. Below I would like a text box that requires the user to input the correct ...
0
votes
2answers
70 views
How to use a newly registered setting with a checkbox and the default value 'true'
I'm currently working on a plugin in which I would like to have a new setting (called 'show_introduction') that has the default value 'true'.
I did this by the following which is hooked into ...
0
votes
0answers
79 views
Not validating HTML5 website due to wp_head and Content-Lang [closed]
I have energyshop.se which is a webshop in wordpress but on a blank theme so it doesnt look like a blog.
I have only 1 validation output error when Im trying to validate the html through ...
0
votes
1answer
26 views
allow only lowercase user registrations
I'm trying to get allow only lowercase usernames are valid usernames in my wordpress blog.
I managed to write a function but it does not seem to work.
add_filter('validate_username' , 'simple_user', ...
5
votes
2answers
151 views
Require featured image
I would like to require a featured image on a site I am developing.
I tried the code here: Make featured image required and nothing happened - the JS showed up in the site header, but I could still ...
0
votes
1answer
41 views
How to prevent options.php deleting valid existing data from the database
I am setting up a plugin and have used the setting API for the first time to create a form in settings. The data for the plugin is initially created by default when the plugin is activated and stored ...
1
vote
1answer
320 views
Remove 'rel' attributes from the_category() output
I am trying to get the categories associated with a post in it's meta section by using the following code:
<div>FILED AS: <span class="gf-post-meta-result"><?php the_category(' ...
0
votes
1answer
225 views
Validating a new user registration field
What I'm trying to do:
Add new user meta fields that can be updated when the user edits their profile
Validate them correctly when the form is submitted
What I've done:
I have successfully added ...
0
votes
1answer
428 views
Remember form field values with page navigation
I have a form on a page template that controls which posts show up on the page and how those posts are ordered. You can see what I mean here: http://www.theseattlevine.com/the-vine
The questions I ...
0
votes
1answer
153 views
How to Debug the 'save_post' Action?
Is it possible to validate PHP code?
I have a Custom Post Type (Film) with Custom Meta Boxes.
Everything is working fine, I can add new Films and details to the Custom Meta Boxes.
My problem is ...
0
votes
0answers
40 views
strikeout lines appear in footer text and sidebar text on a single page of site, not all pages [closed]
I designed a site for a client and have viewed the site in multiple browswers and platforms. The client is reporting an issue with one of the pages on the site⦠not all the pages, just one of the ...
4
votes
4answers
323 views
Replacing the Wordpress password validation
I have a custom application with thousands of users who already have a password stored. I would like to set up a self hosted wordpress site to accompany that application and to use the usernames and ...
1
vote
0answers
41 views
Only allow site url in text field using wp_kses/wp_filter_nohtml_kses?
I'm working on validation for a theme options page.
Is there a built in way to add an argument to wp_kses/wp_filter_nohtml_kses that will allow a specific link to be entered(wrapped in a tags) but ...
1
vote
0answers
133 views
Validating a cloned/repeatable input (jQuery)
I'm trying to create a repeatable field an upload image input with image preview for my Theme Options page and I have the following:
function theme_options_validate( $_POST ){
if ...
1
vote
2answers
525 views
Check if username exist with AJAX
I've created a custom registration form for a WordPress MultiSite installation. It allows registrations of new blogs and users. I want to check with ajax if a given username is available. This is what ...
0
votes
1answer
41 views
Post Format Link Validation Error
For link post formats to appear in my archive.php I'm using the following code:
<a href="<?php echo wp_trim_words( get_the_content(), 100 ); ?>">
<?php the_content(); ?>
</a>
...
0
votes
1answer
20 views
How to do more than one verify_nonce in one function?
I use a function to inset post at front_end. There are 3 different types of actions may trigger this function. So, in this function, should I write 3 verify_nonce?
1
vote
1answer
70 views
Inconsistent server code response using HTTP API
I'm using Wordpress http api to get a server response code from youtube api so I check the validity of a video. I do this in a function from my functions.php which processes my post form where I ...
1
vote
0answers
33 views
Showing errors from processing function on form
I use a function from my functions.php to process a front end post form. I store the errors in the variable $output but need a way to show it on the post form after submit. How can I do that?
0
votes
1answer
196 views
Front end post form validation
I have a front end post from that works fine except for the validation that I need done before it's processed. Ultimately I'd like to be able to do this with ajax because I have to do some things like ...
1
vote
3answers
370 views
How to properly validate data from $_GET or $_REQUEST using WordPress functions?
I am working on a plugin that requires on-the-fly manipulation of content output. This is solely dependent on the current $_GET variable or $_REQUEST variable.
Depending on what the variable is set ...
12
votes
2answers
335 views
In Which Contexts are Plugins Responsible for Data Validation/Sanitization?
I want to make sure all of the data in my plugins/themes is handled securely before entering the database and before being output to the browser. My problem is that there are situations where the API ...
0
votes
0answers
13 views
Test if a new post has a category checked in the edit panel [duplicate]
Possible Duplicate:
How to trap “Publish” button to check for meta box validation?
I have created a custom post type with custom categories. I want to be able to test when the ...
3
votes
2answers
792 views
How to validate custom fields in custom post type?
I wrote a plugin that creates a custom post type with custom fields. To prevent users from entering incorrect information, how can I validate the data?
I assumed that the save_post hook function ...
0
votes
2answers
382 views
Verify Submitted Form Values and Show Warning Messages with Setting API
I'm making a plugin administration page with the settings API. I'd like to know a way to display a warning message when the user submits an invalid value.
For example, with the below code, if the ...
1
vote
0answers
160 views
Validating buddypress custom profile fields
I'm using buddypress and I offer users the chance to add links to their social networks (facebook/twitter) by entering the url's into custom profile fields. My issue is that people can;t follow ...
1
vote
1answer
28 views
correct tags for validating input types
I have following types of theme options inputs, which I need to validate.
$numbers = "#1234";
$email = "abc@example.com";
$simeple_text = "How's going?";
$code = "<script ...
1
vote
2answers
627 views
<?php echo $title ?> vs <?php echo esc_html( $title ); ?> Wordpress Security
Reading this great article Data Validation and Sanitization in Wordpress I've noticed that in my blog, in header.php, I used <?php echo $title ?> in a pair of codes.
According to the above ...
1
vote
2answers
352 views
Validate an option array
We use the default WordPress register_setting() function to validate theme options. This call, for example:
register_setting( 'options-group', 'option1', 'intval' );
Will validate whether or not ...
0
votes
0answers
55 views
Stop saving process when metabox is invalid [duplicate]
Possible Duplicate:
Prevent post from being published if custom fields not filled
Check before publishing, if already exist post with current custom field value
I am trying to add some ...
0
votes
3answers
295 views
Alternative to esc_textarea
I need an alternative function to use with textareas in meta boxes instead of esc_textarea.
The problem is that when I use this function with textarea's it removes line breaks and paragraphs. Is ...
1
vote
1answer
88 views
Persist fields with Setting API
In my admin panel, if I use a sanitizing callback register_setting() and the field does not pass through my custom validation, I've been preventing the database from updating by using return FALSE; ...
1
vote
2answers
191 views
Validate data on attachment_fields_to_save
I'm very glad that there is such a dedicated website for WP.
My problem is data validation upon saving attachment fields. I have added many custom fields to attachment/media library dialog, most of ...
1
vote
2answers
218 views
Prevent empty Post Title on form submit via front end post (wp_insert_post_)
I am creating a post from the front end using (shortened for brevity);
if (empty($_POST['my_title'])){
echo 'error: please insert a title';
} else {
$title = $_POST['my_title'];
}
...
1
vote
1answer
253 views
How do i validate data entered in a meta box so that only floats can be entered in a field?
We have a custom post type in our plugin and now i must provide the user a meta box where he enters latitude and longitude. I want them to be floats, i have no problems in doing the validation client ...
1
vote
1answer
79 views
protect user submitted posts
I have a website that I am working on. I created an html form and put in some code that will take the form data and create a new wordpress post. It will post the information to a specific category. ...
0
votes
1answer
214 views
Form validation on user profile edit
I have added a custom field to user profiles in bbPress however I am unsure how to do form validation other than javascript. I would like to do some PHP validation however the few things I have tried ...
0
votes
1answer
143 views
Settings API - getting hidden input / submit button's name
I'm generating this form using Settings API:
<form action="options.php" method="post">
<?php settings_fields('XX_theme_settings'); do_settings_sections('my_settings'); ?>
...

