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
- Prevent post from being published and show error
- Wp Query : Order by distance lat,lon
- Woocommerce Custom Meta Boxes- How to only display if they actually have content
- remove specificly the last tag in all posts
- Pagination in single.php
- Pagination at category doesnt work with same name of page
- Add posts to custom table in database instead of wp_posts
- Password protect URLs
- get value from get_post_meta then reuse it in another get_post_meta
- Edit and delete permissions pages and posts
- understand what code is doing when prepending /blog
- How to show categories and date on posts
- Advanced Query posts
- Generating 10 000 WordPress posts using PHP and avoiding Server Timeout error
- My worpress search page is showing no results
- If Post Published Date or Modified Date is 1 Year or Older, Display Notice on Post Page
- How to Create custom block for displaying information in content section which act like shortcode
- WordPress Post Block Element not properly parsed with the_content filter
- duplicate posts with ajax load more wordpress
- Filter wordpress posts without searching the keywords in the post content
- Give ID to divs inside the loop
- Build A Custom SQL Query for WordPress Search
- My Custom Post Type AJAX Query is Returning no posts – why?
- WordPress Custom Form – Getting Query Vars, Weird Glitch?
- Post form – AJAX won’t upload featured image – Plugin development
- How to Send Pingbacks for all Posts in WordPress?
- How to display 8 posts in four columns and 2 rows on a carousel slide?
- Display articles with a different template in the home page | Solved |
- How can I check if a post with a particular slug or title exists?
- WordPress sorting posts by date and title using a dropdown
- How to get post image caption by index
- posts_per_page displays only 2 posts instead of 4 posts
- 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?
- Query on a repeater date (acf)
- Time Stamp In A WordPress Post Title That Does Not Keep Refreshing
- How to get post titles by post ID and integrate with my code?
- Check $post->ID against multiple values
- Trying to get post ID outside loop on blog page
- 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?
- Infinite looping next post link within a certain category on a post
- Trying to show the category of a post in the post display
- Split post or page content in two or more columns
- 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
- Check the database for a postmeta field
- Show a text if the post has written by author user role in WordPress
- How to bind each “the_content” elements to a custom variables
- Can I disable auto increment of WordPress Posts Database to utilize previously deleted records?
- Send POST request to Flask app from functions.php file
- Getting info about selected posts using one WP_Query
- Replace an array (with identical values) with another array in the_content
- Closing Comments conditionally in comments.php
- Change upload URL by mime type
- How to center all text body in single.php at once?
- Get list of posts from attachment
- Posts sortable column not sorting properly for custom field numbers
- WordPress article with 50 000 words loading slow – 100% cpu
- link to page_for_posts
- Display post of specific category on page
- HOW TO Insert Existing PHP Code to WOrdPress
- Query posts by custom fields (object post)
- How to modify this function to exclude also the post belonging to a specific category?
- How to customize posts in WordPress by using HTML and CSS?
- How to display the date under the post title?
- foreach all the post
- How to list all the posts in a personalized page? WordPress
- 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?
- Blog Posts not sorted and pagination not adjusted after filtering some category
- Set post to draft if matching word is found in the post
- Disable single posts, but keep archive
- Add multiple HTML attributes to an Elementor button
- WooCommerce: write featured image dimensions to custom fields in product’
- How to create a WordPress PAGE in another folder?
- How do I get a function to work in single.php
- transition_post_status hook, works – but not if the post is new
- How to use a conditional statement in a post loop but not count towards the “posts_per_page” if false
- Count the number of matching post names in foreach loop
- Need Help With Making Full-Width Template for Blog Posts (common methods aren’t working)
- Bulk data save in custom table
- How to change post date and post time in WordPress automatically with a function
- How to get ACF field to show up on all posts on front end?
- Global update of records after import WP All Import Pro
- Display posts based on the selected category when no subcategory is chosen
- Display two previous posts on single.php
- (plesk)After adding 1000 youtube url to my 1000 different wordpress article, my all websites doesnt show yt url as embed
- change the blog in the url if you go from a specific page wordpress
- How to make posts_like_dislike reference current post when iterating?
- Category Attachment Pagination 404 Error on 2nd Page
- Warning: Undefined variable $post_id
- How to send user password reset link to their phone number instead of email
- Issues applying JSON body filters in EU F&T Portal SEARCH API with WordPress integration
- How to display only the first 2 words of a post title