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
- Inject post (from specific category) between posts in Loop
- How can i remove all html tags from get_the_content()?
- Display posts by month
- Custom SQL query to get List of posts with featured image url
- 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
- Automatically generate Post/Page from searched Database item?
- How is WordPress manipulating the posts like there are folders?
- Output 2 items within the Loop
- Get taxonomy terms only of the WP_Query current posts
- How to get 2 or multiple custom post types in wordpress functions.php
- Displaying a button on each post
- Hide post if matches current month and year
- Creating bulk posts with Youtube videos
- Getting a specific post values to another div or modal
- Output Buffering – Everything between wp_head and wp_print_footer_scripts?
- Unreadable pagination
- how do I get a specific post from a post with a subcategory in WP
- Removing “wpautop” (auto tags) only on certain pages?
- Which hook/action will help me solve my problem?
- Open post-content in archive page in a Modal box with bootstrap
- Styling my own password protected page, how to deal with wrong password?
- Get children post mime type using parent post_ID wp_post
- How to know where this function definition is declared?
- Get URL from shortcode tag
- How to debug this search & replace strings snippet?
- Getting content from a referenced post
- Only first shortcode gets executed
- Password minimum length in personal subscription [closed]
- How to hook code to show after the_content?
- How to avoid duplicates when creating recent network posts
- Update post title from external file?
- Automatically add images to a menu
- set post limit at load more ajax wordpress
- Redirecting to a custom forgot password page
- Array to string conversion on array_map
- Store metakey value as an array
- Only show first image in foreach loop
- How to use mysql LIKE with wpdb?
- Do I need to edit my theme in order to change the title of my blog page?
- create front-end users post list by specific category
- Incrementing PHP variable onclick to display posts by month
- How to turn each phone number within the $content to a telephone link?
- Do not duplicate posts with multiple categories in multiple loops
- show recent posts php code error?
- Error display post thumbnails for previous and next post
- Post to WordPress from another Server via PHP
- WordPress Search
- Including Custom fields within the_content
- Update value of a associative array with update_post_meta
- Wrap posts p tags in div
- Problem in replacing the_content with the_excerpt()
- Password protect URLs
- Edit and delete permissions pages and posts
- Generating 10 000 WordPress posts using PHP and avoiding Server Timeout error
- If Post Published Date or Modified Date is 1 Year or Older, Display Notice on Post Page
- Filter wordpress posts without searching the keywords in the post content
- Give ID to divs inside the loop
- Post form – AJAX won’t upload featured image – Plugin development
- WordPress sorting posts by date and title using a dropdown
- posts_per_page displays only 2 posts instead of 4 posts
- How to get post titles by post ID and integrate with my code?
- Trying to get post ID outside loop on blog page
- Infinite looping next post link within a certain category on a post
- Enqueue script only on child pages of custom post types
- Attach and retrive multiple pdf files to post or page
- WordPress recent post
- Need to show 7 posts from actual date
- Can I disable auto increment of WordPress Posts Database to utilize previously deleted records?
- Replace an array (with identical values) with another array in the_content
- Get list of posts from attachment
- How to use a PHP file to control the content of a blog post
- My blog posts section seems to be rendering the other blog posts inside the first? :/
- LinkedIn Share Post Button
- Get the total Author Favorited posts
- How do I generate formatted permalinks as specified in backend options?
- Using Tag Groups: Displaying groups and adjacent tags of current post
- Setting at job with shortcode not working
- Add div after every 4 posts then every 2 posts for a responsive loop
- Display 6 most recent post on homepage?
- Only Get A Certain Number of Posts From WP_Query
- Apply filters when loading post via ajax
- How to call post title and post summary to other part of site?
- Published custom posts missing
- Insert wordpress tags below posts via functions.php
- Add Custom Post Type on the Fly or create an array
- WordPress article with 50 000 words loading slow – 100% cpu
- link to page_for_posts
- Display post of specific category on page
- How to display the date under the post title?
- How to create a loop that will display one post and stop?
- $post->ID calls for current page, but what is the code to call for any new page created and published in WordPress?
- WooCommerce: write featured image dimensions to custom fields in product’
- transition_post_status hook, works – but not if the post is new