最近在研究WORDPRESS。
我下载了一个主题,玩DIY。发现ADMIN appearence edit菜单里,只能编辑主题主文件夹下的页面文件。是否有插件或别的方法,使ADMIN appearence edit菜单里可以编辑主题子文件夹下面的页面文件?比如可以在控制面板里就可以修改newthemes/js/theme.js?另外,我在该主题的主页里添加一组input提交按钮,主页URL显示为:localhost/wordpress/
在我电脑里的路径是:C:\www\wordpress\wp-content\themes\newthemes\
<form action="<?php STYLESHEETPATH . 'index.php'; ?>" method="post" target="_self"><input type="submit" value="name" onclick="sub('name')"></form>
但是提交后显示:"sorry, no post matches your criteria""对不起,没有POST和你的标准相符",这个页面有点类似于个人profile的页面,URL变成了完整路径localhost/wordpress/index.php。
我把localhost/wordpress/index.php粘贴到地址栏,跳转回localhost/wordpress/,先前的那个主页。是不是action的路径写的不对?求正解。

解决方案 »

  1.   

    再问一个新问题。
    我在WP里加了一些自己的网页,这些页面都从外部数据库进行MYSQL QUERY操作,如何将这些数据库结果进行分页?
    $db = mysql_connect("localhost","root","root") or dir("can not connect Mysql Server");
    mysql_select_db("db",$db) or dir("can not connect Mysql Server");
    $result = mysql_query("SELECT * FROM table"); 
    while ($row = mysql_fetch_array($result))
    {
    echo "<p>".$row['name']."</p><br />";
    }
    ?>我在网上通过教程自制了一个分页脚本,单独使用该分页脚本没有问题,但是装进WP后出现了问题。怀疑是.htaccess的导致的。
    WP将index.php全都过滤掉了。而分页需要类似 search.php?page=1 之类的URL变化。 如何修改.htaccess呢?WP的.htaccess# BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /wordpress/
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /wordpress/index.php [L]
    </IfModule># END WordPress我增加的网页是
    wordpress/newsearch/
    wordpress/newsearch/book/
    wordpress/newsearch/hoppy/
    需要URL变化为
    wordpress/newsearch/book/search.php?page=1
    wordpress/newsearch/book/search.php?page=2谢谢。
      

  2.   

    UP一。下问题
    PS:2条裤衩的都做AD……