davidjackson
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Codex: Displaying post by Catagory id orderOk,
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,
DavidForum: Fixing WordPress
In reply to: Changing Post display order?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);
}Forum: Requests and Feedback
In reply to: Blocking Unregistered Spammers, Porn, GamblingI probably talking out of turn here, could we check that uesrname and password are set before allowing comments to be posted?
DJJForum: Fixing WordPress
In reply to: Urgent 1.2.1 Password Emailed in Base64Ok, 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