You need to change:
<form action="index.php" method="post">
to:
<form action="" method="post">
I’m guessing that this is just a test case, but be sure that your final template has calls to wp_head
and wp_footer
in there.
Related Posts:
- Display all posts from specific categories on a page
- How to display comments and comment form on custom post type?
- I am trying to create a simple frontend form for posting
- Accessing $post variable from template part
- how to show all post in my page-grid.php template page
- POST from jQuery to PHP
- Phantom 302 status code when sending a POST requests on pages
- How to automate filing a form as a user
- Creating a Page of Posts
- Dynamically generate child-URLs for posts or custom posts
- Ajax posts filter by date, comments, top views, top likes
- How to display posts on a static page? (like search loop)
- Is it possible to create a form post wordpress custom navigation link?
- Redirection not working in this front end post submission form?
- How to build a site with a map that shows where people offer and need help?
- CF7 upload file failing [closed]
- How to convert contact form 7 submission to post after submission? [closed]
- How safe is renovating $wp_query when doing WP_Query pagination in Page Template
- how to show single post in a custom template
- redirect to uploaded (wordpress) post after form submission from front-end
- How to create a template for Pages?
- posts not showing on index.php
- Page template is accessing the incorrect posts?
- Proper way of establishing custom landing pages in WordPress
- Hide a specific post from a page template
- How to Use index.php file for “Blog” Page And this is Not a Home Page
- Refresh problem post is duplicated when page is submitted after page reload
- How to identify and hide/remove an element from a WordPress page [closed]
- Post Form Results to Table in Same page
- HTML Form Submit to table in same page
- Custom Articles page only showing a limited number of posts per page
- How to get the form code from the edit page of a specific post?
- How to Featured content with images in home page?
- Find out in which kind of archive am I
- WordPress single.php different layouts projects / posts
- In admin panel, use a form to create a post?
- Standalone form does not post to the url when form fields are populated (otherwise it does)
- How do I apply a template to my single posts?
- Mailing list submission from a post that doesn’t have a form on it
- How to create custom post page in WordPress?
- How to let a user create a post by submitting a POST form?
- How can I pass form entry to another form on a new page
- Not adding a new post?
- Redirecting wordpress search query to archive page
- How can I create a Survey Form in WordPress that users can fill in and then submit the entire survey contents as a post?
- WP Ajax returning 0, can’t find action
- How to show WP admin edit page within template page/post?
- How do I customize the post page
- Secretly passing post ID/title etc into a shortcode form automatically to link submission to post
- Creating a frontend blog post form for logged in users only
- Page Template Drop down disappears when static front page is selected
- Ajax the create and edit post form into lightbox and get results
- How do I set content in my pages so that it remains permanent while blog posts are added below?
- Display result of custom form
- Changing a field value on submit using a PHP variable
- Post gallery as carousel
- Posts don’t appear on Template Page
- Save/retrieve form data best practises for theme development
- form to post multiple inputs into post_content
- Make a custom URL and link to custom Template
- User driven content problems
- How do I insert a custom field in a user submitted post?
- Can’t assign another category other than Uncategorized int he following front end post submission form?
- Get Video Attachment to post
- How can I add a custom caclulation form in post?
- Filter/Sort Post Form On Taxonomy page
- Is there a way to change the default post template selection for a specific category?
- Code understanding
- Get WordPress post content by post id
- Get page ID of page that is set as the posts page
- Get Posts Under Custom Taxonomy
- How to limit the number of posts that WP_Query gets?
- Stop WordPress Wrapping Images In A “P” Tag
- When is the ‘post_content_filtered’ column in database cleared by WordPress?
- Turn a URL into an Attachment / Post ID
- GET the excerpt by ID
- Stop WordPress automatically adding tags to post content
- Determine if page is the Posts Page
- How to get ‘post_content’ without stripping tags?
- How to add an admin notice upon post save/update
- Print Current Post Index number within Loop
- Should we trust the post globals?
- Optimize post insert and delete for bulk operations?
- Get the Current Page Number
- How do you add thumbnail support for custom post types?
- How to mark every 3rd post
- Change Posts per page count
- Keep featured content post in homepage with original order
- How to display related posts from same category?
- Can posts have parents?
- Is there a action hook for the “Empty Trash” button?
- How to end the excerpt with a sentence rather than a word?
- How do I check if I linked to a post before I delete it?
- How to change the case of all post titles to “Title Case”
- Appending content with broken in 4.4
- How to get posts published between a date and today?
- ZIP up all images displayed in a [gallery] and offer as download link
- How to detect single.php (but not single-portfolio.php)?
- How to check if post meta key exists or not in wordpress database
- How to remove a column from the Posts page