WordPress.org

Ready to get started?Download WordPress

Forums

[Unknown column 'time_modified' in 'order clause'] (5 posts)

  1. ErikThulin
    Member
    Posted 8 years ago #

    What ever theme I run I get this error:

    WordPress database error: [Unknown column 'time_modified' in 'order clause']
    SELECT * FROM wpmain_posts WHERE post_status = 'static' ORDER BY time_modified ASC

    Site: http://www.freedomdown.net/main/

    How can I fix this?

    Thanks so much,
    - Erik

  2. Joshua Sigar
    Member
    Posted 8 years ago #

    Are using the template tag wp_list_pages() and passing parameter 'sort_column=time_modified'? Pass 'sort_column=post_modified' instead.

  3. ErikThulin
    Member
    Posted 8 years ago #

    I'm sorry but could you layman that a bit more?

    Sorry for the trouble,
    - Erik

    PS this happens with MULTIPLE themes.

  4. ErikThulin
    Member
    Posted 8 years ago #

    Ok, figured out what you meant and did it. It worked!
    Thanks,
    - Erik

  5. roright
    Member
    Posted 8 years ago #


Topic Closed

This topic has been closed to new replies.

About this Topic

Tags