2010-12-04 52 views
0

我想創建一個Wordpress頁面使用MySQL查詢。這是我的查詢。使用MySQL查詢Wordpress頁面創建 - 不工作

 
INSERT INTO wp_posts (`post_author`, `post_date`, `post_date_gmt`, `post_content`, `post_title`, `post_excerpt`, `post_status`, `comment_status`, `ping_status`, `post_password`, `post_name`, `to_ping`, `pinged`, `post_modified`, `post_modified_gmt`, `post_content_filtered`, `post_parent`, `guid`, `menu_order`, `post_type`, `post_mime_type`, `comment_count`) 
VALUES (1, '2010-11-29 14:05:04', '2010-11-29 08:05:04', 'cool.', 'Nice', '', 'publish', 'open', 'open', '', 'nice', '', '', '2010-11-29 14:05:04', '2010-11-29 08:05:04', '', 0, 'http://exampleurl.net/', 0, 'page', '', 0); 

如果我執行上面的查詢,它會創建新的頁面。現在,如果我嘗試使用瀏覽器訪問的頁面,它顯示了我這個

 
Not Found 
Apologies, but the page you requested could not be found. 


注:我使用自定義固定鏈接:/%類別%/%postname%。

+0

可能的重複:http://stackoverflow.com/questions/1670838/inserting-a-post-in-wordpress-using-mysql – neo2862 2010-12-04 09:04:00

回答