WordPress MySql INSERT

Я пытаюсь вставить в WordPress через phpmydamin … но мой пост не отображается для пользователей.

В дополнение к таблице wp_posts должны вставить еще?

Это мой запрос …

INSERT INTO wp_posts (cod_empresa,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,cidade,estado,cod_categoria,categoria,plano_comercial)
VALUES
(1099,1","2013-11-29 01:01:01","2013-11-29 01:01:01","www.cmgravatai.rs.gov.br    ","CÂMARA MUNICIPAL DE VEREADORES DE GRAVATAI","","publish","closed","closed","","camara-municipal-de-vereadores-de-gravatai","","","2013-11-29 01:01:01","2013-11-29 01:01:01","",0,"",0,"item","",0,"Gravataí","RS","6255","Câmaras Municipais",2);

0

Решение

Я уверен, что в таблице wp_posts нет таких полей, как:

cidade,estado,cod_categoria,categoria,plano_comercial а также cod_empresa,

Проверьте структуру таблицы:

CREATE TABLE `wp_posts` (
`ID` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`post_author` bigint(20) unsigned NOT NULL DEFAULT '0',
`post_date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`post_date_gmt` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`post_content` longtext NOT NULL,
`post_title` text NOT NULL,
`post_excerpt` text NOT NULL,
`post_status` varchar(20) NOT NULL DEFAULT 'publish',
`comment_status` varchar(20) NOT NULL DEFAULT 'open',
`ping_status` varchar(20) NOT NULL DEFAULT 'open',
`post_password` varchar(20) NOT NULL DEFAULT '',
`post_name` varchar(200) NOT NULL DEFAULT '',
`to_ping` text NOT NULL,
`pinged` text NOT NULL,
`post_modified` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`post_modified_gmt` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`post_content_filtered` longtext NOT NULL,
`post_parent` bigint(20) unsigned NOT NULL DEFAULT '0',
`guid` varchar(255) NOT NULL DEFAULT '',
`menu_order` int(11) NOT NULL DEFAULT '0',
`post_type` varchar(20) NOT NULL DEFAULT 'post',
`post_mime_type` varchar(100) NOT NULL DEFAULT '',
`comment_count` bigint(20) NOT NULL DEFAULT '0',
PRIMARY KEY (`ID`),
KEY `post_name` (`post_name`),
KEY `type_status_date` (`post_type`,`post_status`,`post_date`,`ID`),
KEY `post_parent` (`post_parent`),
KEY `post_author` (`post_author`)
) ENGINE=InnoDB AUTO_INCREMENT=94 DEFAULT CHARSET=utf8
3

Другие решения

Других решений пока нет …

По вопросам рекламы ammmcru@yandex.ru
Adblock
detector