Your button is submitting the form
use this script
<script>
jQuery(document).ready(function ($) {
$("#add-url").click(function(e){
e.preventDefault();
$( "#submit" ).before( "<br /><input id='url-field-1' name="urlfield[]" type="text"><br />" );
});
});
</script>
Related Posts:
- How to Add a Third Level Sub Menu to the WordPress Admin Menu
- Creating a WordPress admin page without a menu for a plugin
- Plugin development: how to create a form and get custom data?
- Master menu item for multiple plugins?
- wp_verify_nonce() why return false?
- Detecting when a custom taxonomy has been changed and display alert?
- Hide Theme options and Customize Admin menu
- Suggestions on Approach to New Plugin I’m Stuck On
- creating a plug in that would tap into save/update action of posts [closed]
- Why WP_Screeen doesn’t show all options with admin_body_class
- add_submenu_page returns null
- How do I add an options page at the bottom of the list?
- How to remove a CPT Menu from the Root Admin only
- Admin menu hilighting wrong item for CPT
- How to add submenu to WordPress plugin in the same Directory of main Plugin?
- How can I pass value to function in add_menu_page?
- Submitting form to admin-post.php WordPress
- is_plugin_active function doesn’t exist
- How to call a plugin function from index.php
- My custom made plugin has “a new version available” which links to unrelated plugin
- Where can I find a schema of wordpress plugin core architecture?
- How Does WordPress Uninclude/Deactivate A Plugin?
- How to fetch serialized data from wordpress options
- WordPress network: set themes and plugins for new blog
- How can I add a custom meta value on file upload?
- Advanced Custom Fields into functions.php
- Admin-ajax.php is dying “0” without processing function
- How do I register a stylesheet inside a WordPress widget?
- Add a Custom Permalink option in the Permalink Admin Screen?
- How to remove an Ajax action
- add function to saving change on Options Pages
- nonces in custom oop plugin
- Has anyone used require.js for handling plugin scripts?
- publish_post plugin hook doesn’t always pass $post->post_content
- Multiple files in a plugin
- Let user subscribe to specific categories
- adding a new value to a serialized array in WP_option table
- Write to / remove from default .htaccess file from plugin?
- What is the best way to mimic a search query within a plugin
- how can I link to a PlugIn admin-sub-menu page after processing a formular
- Remove rewrite rules generated by plugin during deactivation
- Programatically download a plugin
- Create dynamic page content from custom WordPress plugin page
- WordPress Gutenberg react make import of __experimentalUseInnerBlocksProps which is no more experimetal
- How to stop activating a plugin and show admin notice when dependent plugins minimum version is not met
- Fixing WordPress’s Bug (failed to send buffer of zlib output compression) results in “White Screen of Death”
- How can I make my metabox appear?
- Consolidate plugin functionality into a theme
- qTranslate remove default directory from link
- Which file of wordpress manage plugins functionalities?
- I should enable automatic updates?
- How to add custom table style for table block in gutenberg editor
- Issues with a WP plugin menu system
- Different custom templates for product category [closed]
- Add a “View all” button on WooCommerce product archives pages
- Unable to give correct path in wordpress
- Disable variations on woo commerce if out of stock
- How to add img into a plugin?
- A question of etiquette when forking a plugin? [closed]
- how to request a script more than once in wordpress
- How to log custom plugin error to debug.log file
- How to make a Product page without ordering and database
- wp_options not returning value for logged out users?
- Gutenberg default attributes are empty when accessing in edit
- How to create admin setting for this small plugin
- Hide all Admin Notices and move on a separate page
- How to fix caching issue in PHP data from database
- Adding shortcodes to multiple pages with function
- SASS not showing in customized preloader plugin
- How to securely controlling data without keeping it in postmeta?
- Get a list of Product Categories inside a loop
- Can you develop themes and plugins while using the hosting services BlueHost? [closed]
- WordPress plugin changes not updating
- wordpress ajax pagination object value does not change
- Google analytic issue in wordpress
- Custom pages with plugin
- How to insert category name above post title in a featured pages plugin?
- Displaying friend’s posts only
- What’s the preferred method of writing AJAX-enabled plugins?
- Shortcode registered from a plugin not recognized
- Synch Custom Post Types (and Custom Fields, Cats, etc.) Between WordPress Sites
- wp_update_post call really slow when official Facebook plugin is installed
- How to set-up multiple cron task with wp_schedule_event so that they do not overlap?
- _e in wordpress +
- WordPress Code Access to Restricted Content without Registration
- Modifying lightbox plugin to allow for quoting, Does this exist? [closed]
- Plugin version number after code rewrite [closed]
- Displaying Category Feature image on loop
- Cannot edit Sidebar in any theme in wordpress
- how to update wordpress plugin programmatically using plugin path
- How to check record is exist or not in WordPress CRUD Operation with $wpdb
- How to add a simple design in classic editor plugin creating post page through another Wp plugin
- Testing Plugin – Install plugin dependencies in testing enviroment
- How to disable pagination in WordPress’ API results?
- Why is my Gutenberg block not saving and rendering the chessboard?
- Is it possible to use Classes between WordPress plugins with separate namespaces?
- Automatically download dependent plugins from WordPress.org?
- How to change the version of block.js and plugin to the same of Package.json?
- Warning “Attempt to read property ‘feeds’ on null” using post update function
- Elementor wp_register_script showing file when i not use ‘wp_enqueue_script’