The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

wp_query goes haywire. (1 post)

  1. viluRS
    Posted 3 years 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