I want to use the inquiry form of MW WP Form outside the WordPress system.
I tried it with the following code, but the short code is displayed as it is.
<? php require_once ('../wp/wp-blog-header.php');?> <! DOCTYPE html> <html lang = "en"> <head> <meta charset = "UTF-8"> <title>MW WP Form</title> </head> <body> <? php echo do_shortcode ('[mwform_formkey key = "60"]'); ?> </body> </html>
Because it is used outside the WP system,
<? php require_once ('../wp/wp-blog-header.php');?>
Do_shortcode tries to display the inquiry form.
As for the folder structure, the WordPress body is installed at the root/wp /.
When the short code was written on the fixed page as a trial, the form body was displayed without problems.
Is MW WP Form not available outside the WordPress system in the first place?
Would you please teach me?
Answer # 1
The short code of MW WP Form is activated by looking at $post->post_content (the article text entered in the management screen). Therefore, it is not activated when it is described directly in the template.
Answer # 2
If it is a WordPress plug-in, it is built on the assumption that it will run inside WordPress, so I think it can not be used outside It ’s fine.
In other words, if you want to use it as it is, you will be "making your own equivalent to WordPress".
I think that it is better to make only the plug-in by looking at the operation of the plug-in alone.
Depending on the requirements, it may be realistic to use only that form with WordPress installed. It depends on the requirements, so it would cost a lot of money depending on the requirements. (Especially if you want to coordinate data, sessions, etc.)
- php - how to run a program from outside the theme with wordpress
- php - i am making a customer search system by studying, but i want to be able to connect to a database, but it does not work
- php - when i update wordpress, i get an error please tell me the cause of the syntax error
- php - anchor link from the top page link to another page on the same site in wordpress
- php - i want to hide the editor on the wordpress custom post page
- php - i want to search wordpress in real time
- php - a system that supports images of a specified size
- php - i wrote a code to hide posts in a wordpress subloop but it doesn't work
- php - how to set google recaptcha v3 in wordpress (no plugin used)
- php - how to require files in a theme with wp tags in wordpress
- php - [wordpress] i want to customize the title of the web page
- php - wordpress: i want to be able to clear&save the item value as a blank on the original setting page added to the managem
- php - [wordpress] i want to display the ip address in the comment field
- php vending machine system: i want to eliminate the undefined index error that appears when purchasing an unselected product wit
- wordpress debuglog no longer prints php errors
- php - i started wordpress, but i can't log in
- php - i want to customize the wordpress posting screen
- php - i want to do wordpress pagination across "posts" and "custom posts"
- php - cannot output wordpress acf
- php - wordpress pagination does not switch display after the second page
- php : Disable user role assignment on URL navigation
- php - how to sort and sort with add_query_arg when creating a loop with wordpress wp_query
- php - if the value is empty, i want to display all terms as search results
- php - [number of articles in term] if the number of articles is "0", you want to hide the number
- php - only the search result page is not displayed in alphabetical order
- i want to write php that displays only 3 articles
- php - i want to display an eye-catching image in wordpress
- php - i want to loop the posted articles using swiper
- php - when using ajax with wordpress, the post title and the featured image become "null"
- php - buddypress activity posting time is off between new posts and thread replies