Not exactly sure what you are trying to do and this doesn’t look like a WordPress issue, but submitting a html form will certainly lead to a new page load. So what you want is redirect not to the same page (which happens when you specify no action, leading the page to scroll to the top) but to an anchor on that page. The usual way to do this is to include it in the action variable of your form like this:
<a name="somewhere"></a>
<form method="POST" action="#somewhere">
...
</form>
Related Posts:
- Excerpt all post content Content Same Size without word cutting off
- How can i remove all html tags from get_the_content()?
- Display posts by month
- Change Password Hint
- Handling error states with admin_post
- get_the_content if it contains multiple lines it results in SyntaxError
- Looking to exclude blog posts from category Previous/Next buttons
- Automatic Excerpt Not Working
- Using a javascript file to access a get posts array
- Print number of post (in reverse)
- Count number of published posts by type
- WP Insert Post function – Insert Post Thumbnail
- How is WordPress manipulating the posts like there are folders?
- Password protecting content in custom template
- How to filter/hook-into retrieve_password() to filter $_POST[‘user_login’]?
- Trying to make php run in a post
- Creating bulk posts with Youtube videos
- Remove posts after a given amount of time
- Hide wordpress field if data is empty in post!
- Output Buffering – Everything between wp_head and wp_print_footer_scripts?
- How to show part of the_content?
- Unreadable pagination
- How to set a min number of words for a blog post
- Get post id in a function when edit/add a post
- Removing “wpautop” (auto tags) only on certain pages?
- Which hook/action will help me solve my problem?
- Loading index.php contents which located outside blog folder for post single page
- get post content of particular post by url
- Get children post mime type using parent post_ID wp_post
- How to know where this function definition is declared?
- How to hook code to show after the_content?
- Count posts on multisite with blog id
- Making (and edit existing) posts with ID included
- Parsing Menu Items and Blog Posts
- Pagination on Custom Post
- $wpdb returns duplicate posts
- How to avoid duplicates when creating recent network posts
- How to show an entire post content and not also the excerpt?
- Why is a wp function used in current PHP namespace’s callback not resolved to global scope?
- Increment paged on WP_Query
- WordPress produces identical hash all the time
- Add new post in existing categories using wp_insert_post
- How do I add more options to the post-new.php page?
- Incrementing PHP variable onclick to display posts by month
- Modify main query before it run without pre_get_post
- .html end of URl affected to SEO?
- Get the id of all images in a post
- Four posts per row [closed]
- Update if post with specific title exists
- Need help removing […] after excerpt
- Strip from or something better?
- Remove password protection from all posts
- Problem in replacing the_content with the_excerpt()
- Pagination in single.php
- Advanced Query posts
- My Custom Post Type AJAX Query is Returning no posts – why?
- How to get post image caption by index
- Inside Array – “unidentified index” error with “prepare was called incorrectly” despite not calling the prepared statement with wordpress [closed]
- Is there anyway I can call the year once?
- Check $post->ID against multiple values
- Don’t update modified post date when user add a product review or comment?
- Limit the number of characters/words in an excerpt for a related posts section
- Posts missing on author page
- How to allow users to save list of posts in wordpress?
- Need to show 7 posts from actual date
- Closing Comments conditionally in comments.php
- How to center all text body in single.php at once?
- Having trouble with customizing blog posts on the home page
- Related Posts: if there is no category use tags
- How do if all posts has this category ID then do this
- Get the total Author Favorited posts
- Get current_post in reverse order with pagination
- Getting error in sql query
- How do I generate formatted permalinks as specified in backend options?
- Issue encountered while trying to keep website private
- How do I get the featured post to share on Social Media and show on Individual Post pages?
- Insert div after every three posts in home.php [duplicate]
- PHP tag in post content makes wordpress go crazy
- Unable to get Post Category Name and URL
- Dynamically Create Posts Via XML File
- Basic PHP question (displaying post title over thumbnail) [closed]
- insert thumbnail image from php script
- Post from front end form to post_meta
- media_handle_sideload() returned post_id being incremented
- Saving Post redirects to 404 page when php $_GET variable in post body
- How can I add WordPress Audio Player as featured audio in Audio Blog Posts?
- Trying to see if page is category or single and displaying title with appropriate heading tag
- link to page_for_posts
- How to customize posts in WordPress by using HTML and CSS?
- foreach all the post
- $post->ID calls for current page, but what is the code to call for any new page created and published in WordPress?
- Blog Posts not sorted and pagination not adjusted after filtering some category
- Add multiple HTML attributes to an Elementor button
- How to use a conditional statement in a post loop but not count towards the “posts_per_page” if false
- Bulk data save in custom table
- How to change post date and post time in WordPress automatically with a function
- Global update of records after import WP All Import Pro
- Display posts based on the selected category when no subcategory is chosen
- How to send user password reset link to their phone number instead of email
- How to display only the first 2 words of a post title