Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter davidjackson

    (@davidjackson)

    Ok,
    It tried changing query line to this:

    $posts = query_posts($query_string . ‘&orderby=post_category&order=desc&posts_per_page=-1’);

    But keep getting this error:

    Parse error: parse error, unexpected $ in /www/t/thegatheringcf/htdocs/wordpress/wp-content/themes/Test/index.php on line 47

    tia,
    David

    Thread Starter davidjackson

    (@davidjackson)

    sketloac —
    Thanks for you reply, but you’ll have to excuse me a more-or-less just a ol’ database hacker, not a php progammer…

    I’ve looked in template-functions-catatory.php and and it looks like catagory id is used as sort order, when displaying posts?

    About line# 265:

    if (intval($categories)==0){
    $sort_column = ‘cat_’.$sort_column;

    $query = “
    SELECT cat_ID, cat_name, category_nicename, category_description, category_parent
    FROM $wpdb->categories
    WHERE cat_ID > 0 $exclusions
    ORDER BY $sort_column $sort_order”;

    $categories = $wpdb->get_results($query);
    }

    davidjackson

    (@davidjackson)

    I probably talking out of turn here, could we check that uesrname and password are set before allowing comments to be posted?
    DJJ

    davidjackson

    (@davidjackson)

    Ok, here’s one approach that worked for me:
    1. Login onto DB using phpMySQLadmin
    2. Selct Db
    3 . Browse wp_user table
    4. Edit user record; for the password field select “MD5 ” from “function” drop down box. And type in new password
    5. Save record and exit.
    HTH,
    David

Viewing 4 replies - 1 through 4 (of 4 total)