The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
0answers
12 views

Multiple Forms Email validation on a single page using javascript [on hold]

I am developing a Wordpress Widget Plugin that inserts as many as you want email input forms in a widget. I am using the following code to validate email fields function validateForm(form) { var x ...
0
votes
0answers
7 views

Change Form Validation in Woocommerce [on hold]

By default in woocommerce checkout page if user misses some required fields or enters invalid values a series of error message will pop out on the top of the form. I wonder if I van change the manner ...
0
votes
1answer
20 views

Sanitizing and validating email field

Should I use is_email() to validate an email field? In WP. I've put the email field in a widget. I would really appreciate some help. function update($new_instance, $old_instance) { $instance = ...
3
votes
3answers
697 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 ...
1
vote
1answer
43 views

Add Div to Comment Form

I have some code that displays my comment form and my custom validation, what I'd like to do is add a div right underneath the title, but I'm not sure how to do that because that code is generated... ...
5
votes
2answers
501 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 ...
1
vote
1answer
329 views

WooCommerce Custom Product Validation [closed]

I'm attempting to build a membership system in WordPress that utilizes WooCommerce with Gravity Forms and integrates with SalesForce. Can somebody give me some direction on how to properly utilize ...
0
votes
1answer
566 views

contact form in template with jquery,validate and ajax

I have a page-contact.php for my contact form in my template. I wanted to add jquery validation and some fancy ajax action to my form. This is already a working code in a simple PHP page, but getting ...
0
votes
1answer
50 views

Meta title W3C Validation Error with

On the single post, the WordPress generates the meta title automatically but it gives validation error. This is what WordPress generates: <meta name="title" content="The post title goes here" ...
1
vote
0answers
47 views

Resetting admin post form on JS validation fail

I've got a custom plugin with a metabox and dynamic form (the user can ask for more elements of the form), with jQuery Validation plugin working great. The problem is when the validation comes back ...
1
vote
3answers
1k 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. ...
2
votes
0answers
49 views

Check for and enforce unique value in user-entered custom meta field in WP Admin

I am trying to figure out how, on a new or edit post screen, to allow the user to enter a custom meta item, BUT force it to be unique. Ideally the process would work like so: Contributor logs into ...
0
votes
1answer
173 views

Comment form vaildation

I've build a custom comments form which hooks onto the default comment_form() in twenty twelve child theme. Here is my code functions.php function pietergoosen_custom_comment_fields($fields) { ...
0
votes
0answers
129 views

WordPress theme options settings not saving

I have problem with my theme options settings saving. My settings is to saving to permanently , its just only save when you stay on the theme options page after saving the settings. But when I go to ...
0
votes
2answers
151 views

Validating custom meta boxes with jQuery results in posts being saved as draft instead of published post

I have a custom post type with a bunch of custom fields. I want to validate the meta box input with jQuery as soon as you press the Publish button. Here's what I have (I left out all my validation ...
0
votes
3answers
1k views

Can a shortcode included in post content add styles to the <head>?

I have a shortcode that iterates through a list of custom post types and, as part of displaying them, creates a block. In HTML5, it is illegal to have a style block outside the header (maybe in other ...
0
votes
0answers
47 views

How to validate datepickers before publish

I have two datepickers in my post: 1. start_date and 2.end_date Basically, I need to check if end_date is greater than start_date before I can proceed to publish. From a previous solution here, I ...
1
vote
1answer
420 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
0answers
193 views

Remove WordPress default registration client side validation?

Is there a way to remove/disable WordPress default registration client side validation? I dislike the pop alert and would like to add my own client side validation visual to users. Please assist me ...
0
votes
1answer
42 views

Which hook should I use for this scenario regarding the registration process and account/profile update?

I would like to run a PHP script "ONLY" when a user successfully fills out the WordPress Registration form and submits it as well as when a user updates their profile. Here's what I have so far, ...
0
votes
0answers
67 views

Ampersands do not display

I've got a WooCommerce install, running on the latest WordPress version. I'm using the discover theme by antthemes.com. There are four boxes at the bottom of the homepage which allows you to change ...
0
votes
1answer
1k views

Contact Form 7: custom validation [closed]

I'm currently using the Contact Form 7 plugin, which is great and works perfectly, but what I'm now trying to achieve with it is some custom validation rules. I found this extension: ...
0
votes
1answer
34 views

How to validation for sanitize_URL?

Like sanitize_email validation is options available but sanitize_url options is available .if options is not available then how can i do this . http://i.imgur.com/WPYdkTb.png
0
votes
1answer
161 views

jQuery Live Form Validation in Wordpress

I'm trying to implement the form validation that can be found at: http://www.geektantra.com/2009/09/jquery-live-form-validation/ I can get the demo above working, but when I implement it on my ...
0
votes
1answer
80 views

Verify Nonce returns false - Request Nonce returns correct value

I'm trying to verify that the nonce I created exists but for some reason it keeps returning false, why is this happening? Creating my nonce: <?php ...
0
votes
1answer
121 views

Reordering fields in registration form via custom plugin

I'd like to reorder the fields in the default WP registration form. I'm adding additional fields with my plugin but they are appearing below the username and email fields. My code is below (it's ...
0
votes
0answers
134 views

Woocommerce shipping plugin: create checkout error based on validation

I'm writing a shipping plugin for Wordpress and I need the ability to display an error to the user and disable the checkout process based on the results of custom validation. I've been using the ...
0
votes
0answers
44 views

Showing registration errors on same user role registration page

I have a custom user role eg. abc123 and I created a different registration page having few more fields than original one at ?action=register which opens at ?action=register&role=abc123 like ...
0
votes
1answer
82 views

Validate user meta and redirect

I wanted to add some extra fields to obtain extra user info which I have added easily that looks like. The example code for a single form field, I added: add_action( 'show_user_profile', ...
0
votes
1answer
368 views

Validating custom fields before post save

After much unsuccessful searching, I'm hoping someone here can help me out. I am using Advanced Customs Fields (I assume most people are familiar) to create a post from the front end. I want to ...
0
votes
1answer
139 views

Remove border attribute from Pin It Button image to pass HTML5 validation [closed]

I am using the Pinterest "Pin It" Button plugin http://pinterestplugin.com which uses this code on my blog pages: <img border="0" class="pib-count-img" ...
1
vote
0answers
188 views

Add ALT attribute to Pin It Button image to pass HTML5 validation

I am using the Pinterest "Pin It" Button plugin so I can add to my posts/images. However, part of the Pin In button uses this code: <img border="0" class="pib-count-img" ...
2
votes
1answer
108 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; ...
0
votes
1answer
184 views

How to reload the role specific registration form on validation errors?

I test a solution for separate registration for different roles and it works very well. But the validation part/function (see bellow) on errors reloads/reuse the generic registration link and not the ...
0
votes
0answers
329 views

Custom Registration Form with Validation

I am trying to create a custom modal registration form, but I'm experiencing difficulties with validating the form. Basically what I have managed to do was to use CSS3 to validate the fields based on ...
0
votes
1answer
96 views

HTML Validation fails because of ampersands in RSS link

I use Wordpress' own rss.php to pull in the last 10 items from an external RSS feed. Wordpress automatically adds campaign info to the link like this: ...
1
vote
3answers
411 views

How do I sanitize a javascript text?

I have a textarea that will receive a js snippet(Google Analytics). Is there a way to sanitize that? Since I cannot use functions like wp_filter_nohtml_kse(), what should I use?
2
votes
1answer
151 views

How to load some jquery code to make validation in the theme customizer?

i am tring to load some jquery code to make validation in the theme customizer. i have created 10 checkboxes to show some info. but i want to limited the user to choose only 5 checkboxes. so i have ...
0
votes
1answer
3k 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
42 views

Settings api sanatize callback not being triggered

I'm creating a custom settings page for a custom theme however the callbacks for sanatizing the data in the fields are not being called (I put in xdebug breakpoints in them to check). /** ...
1
vote
1answer
684 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(' ...
1
vote
2answers
4k 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
48 views

Output Sanitation

I've read the WP codex and several tutorials about data validation and sanitation in WordPress. Now I've got this simple example code: $title = "<script>alert('Test')</script>"; echo ...
2
votes
2answers
2k views

How can I make post fields required in Wordpress?

I am setting up a Wordpress site as a CMS and trying to figure out a way to make certain post fields "required" before an author can publish a post. In particular, I want authors to be required to ...
0
votes
0answers
345 views

register_setting - validation callback weirdness

I'm working on a plugin and having some issues validating input on its settings page. I'll try to explain as briefly as possible what I'm doing in the plugin file: if (is_admin()) { ...
0
votes
1answer
114 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
22 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
3answers
203 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
208 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
1answer
64 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?