admin管理员组文章数量:1130349
I created a post programmatically using python:
sql = "insert into `wp_18_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`, `django_id`)" \
" values " \
"(%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)"
the post is showing up in database and also in index page, but once I click on that post, it is redirecting me back to index again. So detail page is not opening.
I am setting post_status to 'publish'.
I also set the taxonomy in mysql manually. but no success.
appreciate any hint..
I created a post programmatically using python:
sql = "insert into `wp_18_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`, `django_id`)" \
" values " \
"(%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)"
the post is showing up in database and also in index page, but once I click on that post, it is redirecting me back to index again. So detail page is not opening.
I am setting post_status to 'publish'.
I also set the taxonomy in mysql manually. but no success.
appreciate any hint..
本文标签:
版权声明:本文标题:why my wordpress post, created programmatically, not opening detail page & redirecting to index instead 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:https://it.en369.cn/questions/1749074186a2312045.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。


发表评论