CPT dashboard error
-
When I pull the my Custom post type in the dashboard I get no posts. I installed query_monitor and found the following errors. Commenting out line 182 of /wp-content/plugins/wordpress-seo/admin/links/class-link-columns.php resolves this issue though this is at best a temporary solution. Please advise.
SELECT SQL_CALC_FOUND_ROWS wp_posts.ID
FROM wp_posts
WHERE 1=1
AND wp_posts.post_type = ‘listing’
AND (wp_posts.post_status = ‘publish’
OR wp_posts.post_status = ‘future’
OR wp_posts.post_status = ‘draft’
OR wp_posts.post_status = ‘pending’
OR wp_posts.post_status = ‘private’)
ORDER BY wp_posts.post_date DESC
LIMIT 0, -1 /* From [site.com/wp-admin/edit.php?post_type=listing] in [/wp-content/plugins/wordpress-seo/admin/links/class-link-columns.php:182] */
Unknown
Unknown You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘-1 /* From [site.com/wp-admin/edit.php?post_type=listing] in’ at line 1You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘-1 /* From [exhomes.staging.wpengine.com/wp-admin/edit.php?post_type=listing] in’ at line 1
- The topic ‘CPT dashboard error’ is closed to new replies.