HTML forms are used to pass data to a server. An HTML form can contain input elements like text fields, checkboxes, radio-buttons, submit buttons and more. A form can also contain select lists, textarea, fieldset, legend, and label elements.

learn more… | top users | synonyms (1)

2
votes
0answers
188 views

Handling results from data hooked into admin_post

I'm writing a plugin that uses a form to pass some data through to itself. Is there any way to do this "The WordPress Way"? Sample form code (on a custom submenu page added under "Tools"): <form ...
1
vote
0answers
23 views

After Submitting Comment Form Shows an Empy Page in WordPress

I have created comment form and write comments then submit. But it will shows an empty page. The page path is http://localhost/isite/test/src/wp-comments-post.php I have changed define(wp-debug ...
1
vote
0answers
17 views

A form that can save/edit after first input

I need a form on my WordPress website that users can input information into through dropdown fields.But i just dont want the information to go away after sending.I need them to still be able to come ...
1
vote
0answers
37 views

Input in plugin widget does not allow spaces

I'm developing a plugin for a client which allows keeping records of reservations to their hotel, and it has a widget which allows clients to make reservations. However, for some reason one of the ...
1
vote
0answers
14 views

Building a request processor for multi-page forms, etc using $_GET requests

Good day, What I'm trying to accomplish in a semi-elegant way today is building a multi-step form type thing. Essentially, I'm trying to rewrite the page based on a $_GET request. Like, say, it's ...
1
vote
0answers
25 views

Remove #wpcf7-f2450-o1 with Contact form 7 redirect

This is what I'm trying to do: I have a contact form, when the form submits I want to redirect to the page http://example.com/thankyou?c=thisisavariable . I can redirect, the problem is he redirects ...
1
vote
0answers
66 views

Select multiple categories from CPT to display in LayersWP builder widget

I am currently developing a LayersWP child theme and have registered a portfolio custom builder widget. In this widget I would like users to be able to select the categories that they want shown. For ...
1
vote
0answers
69 views

How do I pass the id of my widget to javascript in the form function?

I would like to add a Quilljs editor to the admin area of my widget, but I am having trouble passing $this->id to javascript. I am using the foo_example widget code, and I've appended the ...
1
vote
0answers
58 views

How do I make a child theme I made POST through a 3rd party plugin?

I made a custom form in a child theme I am developing. One of the plugins I have installed is Anspress. I want to use my question form instead of the plugin's form. How do I make my form post through ...
1
vote
0answers
28 views

Make a form that will send email to all the authors in selected category

Is there a way by which i can make a contact form in which user can choose a category from a drop down list and write a message. Then all the authors of the selected category will get an email with ...
1
vote
0answers
123 views

How to make WordPress forms secure (HTTPS)

I've been trying to get my site to run over HTTPS for ages. At the moment (in Chrome) I have the padlock but have the yellow triangle over it because some content is insecure. I check out the console ...
1
vote
0answers
245 views

Styling my own password protected page, how to deal with wrong password?

Per these instructions I've cooked up a custom password protected page for some of the pages on my site: <?php if ( post_password_required() ) { add_filter( 'the_password_form', ...
1
vote
0answers
635 views

Contact form won't submit

I posted this on the Stackoverflow site and haven't received much assistance with the issue. I hope that, by reposting it on here, someone could please offer me any assistance. I am creating a theme ...
1
vote
0answers
99 views

Edit Custom Post Type on Custom Admin Page instead Post Admin

Background: I am still quite fresh to coding and WordPress. For me the best way to understand, is to work on a specific project. Project: I want to build a Customer Relationship Tool for WordPress ...
1
vote
0answers
556 views

jQuery and AJAX Not working with Select Form Element

I seem to be having a strange issue with jQuery and a newly-created AJAX form/function. I'm pretty new to AJAX so please bear with me. Here's the jQuery: ...
1
vote
0answers
149 views

Search Query: how to construct a search string from two select elements?

Im trying to create a wordpress search widget. The final search string Im trying to submit is made up of two keywords, one each from a select element. I'd like the final search query to be ...
1
vote
0answers
148 views

Post submit using shortcode and init

I'm trying to find the best way to return errors to a page once a form submitted by using a shortcode. I'm adding a function to init such as - add_action( 'init', 'contact_form_process_post' ); ...
1
vote
0answers
111 views

Image upload and other options in the same plugin settings form?

I write a wordpress plugin. My plugin has two options. One is an image upload mechanism and the other is a checkbox. My code is below: <?php /* Plugin Name: Plugin Name Plugin URI: Description: ...
1
vote
0answers
158 views

Login to wordpress by clicking a link and specifying usernaname and password in url

I'm running a php application on an ubuntu server that's completely independent of my wordpress site. I'm using an iFrame of the server inside the wordpress site, but I need to login to Wordpress with ...
1
vote
0answers
68 views

Search form not finding content in template page

I created some template pages on my wordpress theme and when I'm trying to do search for some words it returns Nothing Found. When I tried to search for words from the posts or normal pages(Not ...
1
vote
0answers
404 views

Wordpress running SQL query to update database from form

Basically I want to take information in from a form and use a separate php page to update the database. so here is the original wordpress php page (add_person.php): <?php /* Template Name: ...
1
vote
0answers
273 views

Dynamically add more fields/remove last field in a form

What I want to achieve is to build a form, which contains buttons "add one more field" and "remove last field" that would do exactly this - add a field dynamically to my form or remove the last one. I ...
1
vote
0answers
728 views

jQuery Plugin to use Wordpress functions in AJAX request

I'm using Chained Selects jQuery Plugin to create multiple chained selection fields. I'm using the remote version of the plugin to build the related options by means of AJAX request from a separate ...
1
vote
0answers
54 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?
1
vote
0answers
75 views

Submit custom form from post content and execute in plugin

I have prepared custom form (quiz plugin) with embedding in custom posts via {{QUIZ_ID}} placeholder. My form is displayed in post correctly but bigger problem is what form action should I create (and ...
1
vote
0answers
242 views

Ajaxify Form That Submits To Same Page To Display Post Data

I have a drop down menu that submits one of several filter options. The options are submitted to the same page, where post titles are displayed based on these options. The form is working fine, but I ...
1
vote
0answers
653 views

How to allow user to select User ID in Formidable Pro form?

The goal of this formidable pro form requires three non-standard things to occur. I've written a custom plug-in with code that accomplishes two of the three goals, but I am unable to get the third ...
0
votes
0answers
24 views

Custom database tables for each forms

I'm wanting a forms functionality, where the form creator can allow the use to create custom tables. Like each form having a separate user specified table and user specified column name as per the ...
0
votes
0answers
13 views

Adding a contact us (WCP Contact Form) form into modal for bespoke WordPress theme

Has anyone got any experience with adding a WordPress contact us form into a reveal modal? I have attempted to do it in my recent WordPress theme i've been creating. The CSS frameWork is Foundation ...
0
votes
0answers
28 views

Page Not Found on Custom Options Form submission

This is an odd one! I am developing a plugin, which includes an options page, using the Settings API. The page contains table which represents an array of "name" => "url" type values to be ...
0
votes
0answers
30 views

Frontend Post with JQuery AJAX to Php Issue

My problem is the following. I'm trying to make users publish custom post_type by frontend through a form like this: <form id="msform" enctype="multipart/form-data"> <fieldset ...
0
votes
0answers
30 views

How to use pre_get_posts filter from frontend user input (GET variables) or do_action

I'm trying to allow users to filter certain pages based on the input from a dropdown. <div class="filter-by-calories"> <h3 class="filed-title">BROWSE BY CALORIES</h3> ...
0
votes
0answers
23 views

How can i implement “select from existing tags” for front end posting?

Hy,on the bottom of Tags: I want to add something to be able to select from existing tags. Something like on backend "Select from the most used tags" Here it's html and php code : case ...
0
votes
0answers
40 views

Contact Form 7 add custom method and action attributes

I have to add custom method and action attributes for my forms. I have found a related SO post here at -> http://stackoverflow.com/questions/14177844/how-to-change-form-action-url-for-contact-form-7 ...
0
votes
0answers
80 views

Integrating Wordpress with a Codeigniter app using $_POST variables

I'm writing a plugin to register and login to a codeigniter app we've got at the same time as registering and logging in to wordpress. the solution I came up with is to submit the form variables to ...
0
votes
0answers
35 views

Get image url from a form

I am new to Wordpress plugin development. I have some questions related to my plugin. I want to get a image URL from a form at backend of my plugin from user and assign it to a (html img) tag src ...
0
votes
0answers
23 views

Associate multiple Database ID's

I am using a form plugin in a multi-seller woocommerce environment where each user (seller) utilizes this form which the values are stored in form's DB tables. My problem/question is: when a ...
0
votes
0answers
62 views

Featured image does not work with images on a post at the frontend?

[Found a partial solution] I need a little help with this problem. I don't know why on my videos the theme uses a thumbnail and set it as featured image but for images it does not. When I install a ...
0
votes
0answers
18 views

Posting from page linked to plugin

I am creating my first WordPress plugin and so far I am not doing to badly but looking for some guidance as not really sure if the way I am thinking of doing this is correct. I have a plugin that ...
0
votes
0answers
30 views

Custom Post Type search with category dropdowns

I have a custom post type called MEPs and I have a search function which sort of works but sort of doesn't. The search function needs to call 2 drop downs. One being the top level categories, the ...
0
votes
0answers
46 views

Onclick Save Text In Input Field

Currently, I have a front-end form on my client's wordpress site that allows users to create a post. I'm using the pods plugin to create cpt, custom fields, forms, etc. I have several input fields in ...
0
votes
0answers
14 views

Form Won't Anchor After Submit

Having some issues with my form. I basically want the form to anchor at a certain part of the page after a user submits the form but I' can't seem to get it to work. Any ideas? <form ...
0
votes
0answers
34 views

Show error if form input field is blank

Hi i am creating a popup plugin in WordPress in which i want to disable my button which is outside form disable until my form fields are empty. I am not using submit button because after clicking ...
0
votes
0answers
14 views

media_handle_upload adds unnecessary extra records in wp_posts

So I created a form to have a user create or edit a post: title, metadata and an image. I use this to update the title: $my_post = array( 'ID' => $post_id, 'post_title' => ...
0
votes
0answers
17 views

Plugin to get a result based on form checkbox

I want to create a page with form submit with 3 fields, for exemple: Type of door? [x] stone door [] wood door [] plastic door and then, in the same page return a text ::there are 5 type of stone ...
0
votes
0answers
10 views

Redesigning the add new post form

This is a learning exercise. I'm trying to redesign the form that is rendered when a user tries to add a new post via the administration panel. So far i've tried messing around in ...
0
votes
0answers
20 views

How to recreate post form on a custom PHP page.

I need to have my users be able to post pages on a custom php page, not through the standard Wordpress menu. Therefor i'm trying to recreate a form that can post just like the Wordpress 'add post' ...
0
votes
0answers
35 views

register_form injects broken html

I have been giving a task from a friend to fix a problem. Keep in mind that I am not very familiar with WordPress but I managed to figure where the problem resides. This website has a registration ...
0
votes
0answers
11 views

Pulling custom post type into a form

I'm trying to make an order form where products can be added by my client using the WordPress backend. It's a non standard form so Gravity or Ninja forms will sadly not do the trick. (needs a modal ...
0
votes
0answers
129 views

Contact Form 7 - redirect with variable | Google Analyitcs

This is the case: I have 10 courses on my website with a contact form where they can subscribe to the course. There is one contact form for all courses. When they subscribe now they just get a ...