2

我看到这个网站来获取文件所在的主题路径:http: //codex.wordpress.org/Function_Reference/get_bloginfo

我有一个表单(文件 register.php),可以将帖子发送到同一目录中的文件(register_proc.php)。

<form id = "form" name = "form" method = "post" action = "<?php echo get_option ('template_url');? > /register_proc.php ">

这两个文件位于: wp-content/themes/theme_name 。

但是当我在浏览器中提交链接是“http://127.0.0.1/register_proc.php”时,它说找不到文件。为什么?

4

1 回答 1

2

你想要get_bloginfo('template_url')而不是get_option('template_url')

于 2012-05-01T18:02:32.017 回答