You need to include the wordpress config file:
require $_SERVER[‘DOCUMENT_ROOT’].’/wp-config.php’;
OR use a page template if your form handler is in your theme. Take a look at using page template’s in wordpress: http://codex.wordpress.org/Page_Templates
Related Posts:
- Simple filter to change label name of Email Adress to something else
- Varying Search Result Pages
- Create register form without a plugin
- Search form not finding content in template page
- Workaround AJAX calling without directly calling WordPress backend (Admin dashboard) because it is restricted to the end user (the public)
- WordPress frameworks and parent themes [closed]
- Where can I download WordPress themes from? [closed]
- Where can I learn to create my own theme?
- How do I turn off self-closing tags for markup in WordPress (for HTML5, or HTML4, for example)?
- How to move the sidebar in TwentyFifteen to the right?
- How can I version the main CSS file?
- Dash or underscore in theme folder name?
- Do Child-Themes automatically load the Translation from the Parent-Theme?
- Using Multiple Themes in a Single WordPress Site?
- How to override the “inc” folder (or any folder) in a theme using child theme?
- Pre-populating the Page/Post Content Editor with HTML Snippets?
- Two instances of WordPress with different URLs and themes
- Is “Featured Content” in Twenty Fourteen done with a plugin, or is it native in WP4.0?
- How can I use WordPress as a job board ? (but free)
- Using WordPress as piecemeal in existing site?
- Can I Download a Free WordPress Theme, Edit it and Use it?
- I’m trying to add an image in my CSS
- How to create a theme option-menu page to save user values
- Are custom inner theme folders in any way overridable by child themes?
- How to put a banner ad between post 1 and post 2 on homepage only
- How to reverse the pagination numbers of an archive?
- In which directory do I find a specific HTML code of my wordpress page? Some of it seems to be missing after checking all pages [closed]
- Changing the title of post with code
- Why do Trackbacks/Pingbacks not appear below my posts/pages?
- Extra themes – ok or bad?
- WordPress AJAX in header.php
- Add transparency to wordpress color picker?
- Theme Customizer – How to create a sub panel
- Processing a subscription form with POST method?
- Setting a static home page and blog page without using the settings
- Can’t Install Child Theme “The parent theme is missing. Please install the “Default” parent theme.”
- Why is WordPress asking me to update my new (virtually blank) theme?
- During theme installation theme upload failed
- How to find a file in WordPress themes [closed]
- Change title slug or separator in WordPress
- How to configure PoEdit to pick up translation string?
- how to remove padding from left and right side? [closed]
- Use a different template/theme if mobile only on home page
- Can i have a single wordpress site to have two themes ( one for pc other for mobiles)
- Translated my theme (translation not showing up)
- How to use get_page_by_title() with qTranslate?
- Changing $before_widget for certain widgets
- wp theme.. Could not create directory
- Free themes for commercial use
- Should a child theme share the same theme options row as the parent, or should it have it’s own options row?
- Multi-level page hierarchy
- Installed theme uses get_template_directory, breaks WordPress on Windows
- How to conditionally display widgetized areas in theme customizer?
- How prevent someone from opening my theme directory
- loss of theme options while site deployment in production
- How to install WordPress theme and configure it? [closed]
- How do I get rid of or change the footer in my child theme?
- Switching a Site to WordPress and Leaving It Live Until Ready
- How can I make some themes usable only by admins?
- Categories gone after changing theme / demos [closed]
- Angular integration with homepage
- Edited Child Theme’s “header.php” but it doesn’t appear to change the file
- Own Theme Customizer displays error message when saving, saving still works
- WordPress redwaves-lite theme Comments Quote remove [closed]
- 1 Database for multiple WordPress themes
- Troubles with Walker_Nav_Menu and closing
- Page has a parent and $post->post_parent returns 0
- How to create different navigation for registered users in WooThemes Canvas?
- translation does not work for ‘Home’
- Should I implement my own custom theme
- How to translate a string that contains a WordPress sitename
- Advantages of wordpress theme vs wordpress as a backend only [closed]
- Is that a malicious code?
- WordPress EduPress and businessbite Theme Installation Failed [closed]
- How can my user make their own Blog/Diary
- Where do I find (free) fully-internationalized themes? [closed]
- Child theme looks different from parent theme, and incorrectly displays parts
- Adding an extra sidebar to your theme
- Widgets not showing on sidebars
- my blog crashes ie7?
- How would I got about calling a php file every time someone publishes a new post?
- Setting Multiple Post Containers Across Homepage And Costumize Them
- Flexslider in child theme
- How to edit the default comment title?
- Why my function.php file in theme delete automatically? [closed]
- How to reverse the pagination numbers of an archive?
- Theme CSS missing completely
- How to implement this layout?
- Themes don’t show up in the dashboard -> Appearance -> Themes
- wordpress theme link url
- Work on theme files on a server & browser preview before installing it
- Route to custom file
- Capcha not getting displayed
- Static front page displaying twice
- Changing appearance of WooCommerce product layout [closed]
- Can’t install vEstate Real Estate WP Themes
- Form that stores emails [closed]
- My theme switches to “Twenty twenty two” on its own even if deleted
- How do I create a post / page without needing get_header() and get_footer()?
- How to cancel style.min.css file?