WordPress.org

Ready to get started?Download WordPress

Forums

wp_query goes haywire. (1 post)

  1. viluRS
    Member
    Posted 1 year ago #

    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?

Topic Closed

This topic has been closed to new replies.

About this Topic