WordPress.org

Ready to get started?Download WordPress

Forums

Post Types Order
[resolved] Stops random image in standard theme twenty ten (2 posts)

  1. actxc
    Member
    Posted 7 months ago #

    With a standard theme, this plugin was always working.
    Now I have a problem:

    If I activate Post Types Order, I get a database error:
    [Mon Aug 26 12:23:24 2013] [error] [client ip-adress] WordPress-Database Error 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 '' at line 1 SELECT wp_posts.* FROM wp_posts INNER JOIN wp_postmeta ON (wp_posts.ID = wp_postmeta.post_id) WHERE 1=1 AND wp_posts.post_type = 'attachment' AND (wp_posts.post_status = 'inherit') AND ( (wp_postmeta.meta_key = '_wp_attachment_is_custom_header' AND CAST(wp_postmeta.meta_value AS CHAR) = 'twentyten') ) GROUP BY wp_posts.ID ORDER BY wp_posts.menu_order, von require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), include('/themes/twentyten/page.php'), get_header, locate_template, load_template, require_once('/themes/twentyten/header.php'), get_header_image, get_random_header_image, _get_random_header_data, get_uploaded_header_images, get_posts, WP_Query-]query, WP_Query-]get_posts, referer: http://***/

    http://wordpress.org/plugins/post-types-order/

  2. nsp-code
    Member
    Plugin Author

    Posted 7 months ago #

    It appear somehow the Order BY filter return those require / require_once which really should be there. Check your theme for such filter.

Reply

You must log in to post.

About this Plugin

About this Topic

Tags