WordPress.org

Support

Support » How-To and Troubleshooting » wp_query goes haywire.

wp_query goes haywire.

  • I have a static frontpage and the blog part pointed to a page (with the link http://localhost/news/) and a custom template called news (http://pastie.org/5109324)

    a custom permalink structure: /%category%/%postname%/

    going here gives me this weird sql statement:

    SELECT wp_posts.* FROM wp_posts WHERE 1=1 AND (wp_posts.ID = ‘1829’) AND wp_posts.post_type = ‘page’ ORDER BY wp_posts.post_date DESC

    Obviously this will not get the posts I’m looking for. Why is this?

  • The topic ‘wp_query goes haywire.’ is closed to new replies.