Skip to content
Read For Learn
Read For Learn
  • Database
    • Oracle
    • SQL
  • C
  • C++
  • Java
  • Java Script
  • jQuery
  • PHP
Read For Learn
  • Database
    • Oracle
    • SQL
  • C
  • C++
  • Java
  • Java Script
  • jQuery
  • PHP

Login_form add to top of form rather then bottom

Unfortunately there is no hook for above the fields (perhaps you might want to submit a patch/feature request on trac?)

You’ll have to get by with JavaScript:

<p id="klantnr-field">
    <label for="klantnr">Klantnummer<br>
    <input type="text" tabindex="20" size="10" value="" class="input" id="klantnr" name="klantnr"></label>
 </p>

<script>
    (function ( form ) {
        form.insertBefore( document.getElementById( "klantnr-field" ), form.childNodes[0] )
    })( document.getElementById( "loginform" ) );
</script>

And I hope you’ll be sanitizing that $klantnr variable if you plan on using it 😉

Related Posts:

  1. How can I make wp-pagenavi work on a custom query built upon a form submission? [closed]
  2. limit amount of photos uploaded per cpt post
  3. Save attachment custom fields on front end
  4. Login & Register & Custom details WITHOUT plugin
  5. Login WP – Connect single field to an external api
  6. Excluding Specific Fields from Profile Builder Registration Form
  7. ACF form edit front end post title does not change permalink
  8. How to add fields in custom registration form, validate it and aave to db? [closed]
  9. WordPress Settings API Repeatable fields
  10. Front end register with custom fields
  11. How to update user profile custom fields
  12. How to insert multiple checkbox values into post as custom fields from frontend
  13. help for user login
  14. Problem uploading different files as custom fields with front end post form
  15. Changing form action based on selected value
  16. Contact Form 7 List Building
  17. what would be a good example of a php dynamic code to display contents of textarea?
  18. Login Api with Meta_key and Meta_value
  19. Create custom fields/meta data gender+country – radiobuttons and dropdown on register screen for these fields
  20. Meta Box Data added to header redirect
  21. Form fields based on custom fields
  22. Bypassing a Form Options
  23. Populate Elementor Form based on first selection
  24. Advanced Custom Fields: how do I check to see if a value is set in an field? [closed]
  25. WP_Query – Order results by meta value
  26. Add filter menu to admin list of posts (of custom type) to filter posts by custom field values
  27. getting all values for a custom field key (cross-post)
  28. How to add a custom field in the advanced menu properties?
  29. Custom query with orderby meta_value of custom field
  30. How to filter post listing (in WP dashboard posts listing) using a custom field (search functionality)?
  31. Using meta query (‘meta_query’) with a search query (‘s’)
  32. Can I exclude a post by meta key using pre_get_posts function?
  33. Add validation and error handling when saving custom fields?
  34. Query to sort a list by meta key first (if it exists), and show remaining posts without meta key ordered by title
  35. Show Custom Fields in Quick Edit
  36. Where are custom field values stored in the database
  37. Validating Custom Meta Box Values & Required Fields
  38. Max length of meta_value
  39. Add custom fields to wp native gallery settings
  40. How to fix missing custom fields after upgrading to WordPress 4.8.1?
  41. How to enable custom fields for pages (if not a bad practice)?
  42. How can I add extra attribute in the ‘Page Attribute’ section in wp-admin for pages?
  43. Is there a way to set default custom fields when creating a post?
  44. Custom post meta field effect on the performance on the post
  45. How to get custom post meta using REST API
  46. Check for correct username on custom login form
  47. Custom field/meta populated by dropdown of existing posts?
  48. Difference between meta keys with _ and without _ [duplicate]
  49. Is there any action filter/hook for validating a custom field before publishing the post?
  50. Remove Dimension from wp_get_attachment_image
  51. Orderby meta_value only returns posts that have existing meta_key
  52. Underscores in custom fields
  53. What is the index [0] for on post meta fields?
  54. What is “meta_input” parameter in wp_insert_post() used for?
  55. Query Posts or Get Posts by custom fields, possible?
  56. How to enable revisions for post meta data?
  57. Sortable Custom Columns in User Panel (users.php)?
  58. Any way to add custom options to Gallery Settings?
  59. The “_encloseme” Meta-Key Conundrum
  60. ORDER BY custom field value
  61. Individual Widgets per Page
  62. Add subtitle to Woocommerce product title
  63. How to protect pages with double authentication: password + email (in custom field)
  64. Best way to programmatically remove a category/term from a post
  65. Importing data for advanced custom fields plugin?
  66. Gutenberg add a custom metabox to default blocks
  67. SQL Query to copy value of a meta_key into another meta_key
  68. ‘Preview Changes’ for custom meta boxes?
  69. Adding a custom field to the site identity menu
  70. Using TinyMce with textareas in meta boxes on custom post types
  71. Filter WP_Query for posts having a certain meta-value
  72. How to correctly call custom field dates into a posts_where filter using SQL statements
  73. Using get_post_meta with new_to_publish
  74. Is there a way to get protected meta fields through any of the available built-in WordPress APIs? (xmlrpc, wp-json)
  75. Add a Jquery Datepicker to custom field in post edit
  76. add meta box – custom field : which to choose?
  77. Preserving line breaks when saving and displaying custom fields data
  78. How to return Meta data from the REST API?
  79. Advanced Custom Fields – Get custom fields from parent page
  80. Can I query custom meta data through WP_Query
  81. Add custom field to the archive page?
  82. Saving custom data for each user
  83. Is it safe to store a user setting you don’t want the user to ever modify as a user option?
  84. Tabindex on text input immediately after WordPress title input
  85. Including custom fields in search?
  86. Add custom fields to search
  87. SELECT max(meta_value) FROM wp_postmeta WHERE meta_key=’price’… stops working when value is over 999
  88. Attaching Metadata to a Taxonomy Item
  89. Add metabox to document tab in gutenberg
  90. How to display all custom fields associated with a post?
  91. How to add add_meta_box to specific Page Template?
  92. How to rename a custom field?
  93. Apply the_content filter to a custom field with multiple values
  94. Filter post listing by meta value which is a date
  95. Extra profile field as select box?
  96. Is it possible to sign in with user_email in WordPress?
  97. Matching Serialized Arrays with meta_query
  98. Custom field metabox not showing in back-end
  99. Meta Query with AND & OR?
  100. Pre-filling custom fields on New Post
Categories custom-field Tags custom-field, forms, login
Wp_mail doesnt work
Load get_page_templates into select menu

Recommended Hostings

Cloudways: Realize Your Website's Potential With Flexible & Affordable Hosting. 24/7/365 Support, Managed Security, Automated Backups, and 24/7 Real-time Monitoring.

FastComet: Fast SSD Hosting, Free Migration, Hack-Free Security, 24/7 Super Fast Support, 45 Day Money Back Guarantee.

Recent Added Topics

  • Bug in translation system: load_theme_textdomain() returns true, files are available and accessible but the language defaults to english
  • Custom Elementor controls not appearing in the widget Advanced tab using injection hooks
  • Get the name of the template/*html file used
  • Trying to Add Paging to Single Post Page
  • Sharing media files between live and staging servers
  • How to display the description of a custom post type in the dashboard?
  • Critical error on image display
  • Copying WP data and files into new install?
  • How to determine the DirectAdmin WordPress backup date?
  • How to get list of ALL tables in the database?
© 2026 Read For Learn
  • Database
    • Oracle
    • SQL
  • algorithm
  • asp.net
  • assembly
  • binary
  • c#
  • Git
  • hex
  • HTML
  • iOS
  • language angnostic
  • math
  • matlab
  • Tips & Trick
  • Tools
  • windows
  • C
  • C++
  • Java
  • javascript
  • Python
  • R
  • Java Script
  • jQuery
  • PHP
  • WordPress