ratbastid
Forum Replies Created
-
Forum: Plugins
In reply to: Why does wp_insert_post() take 4.5 minutes?Oh. My. God.
My client had 64 ping targets in there. Sixty-effing-four. He’s SO fired.
Clearing them out makes my posting go lickety-split. I’m glad I just spent my whole day hacking a mechanism to make the posting happen in the background.
Thanks for your help HandySolo.
Forum: Themes and Templates
In reply to: “order by” in a query_posts() ?Actually, it appears that even adding my own field doesn’t get it.
I can add “orderby=title” to the query_posts and it happily alphabetizes, but there’s no database field called “title”. There’s one called “post_title”, though. I presume that there’s a list of keywords for the orderby argument embedded in the codebase somewhere, and that adding my own field is impossible.
Certainly I haven’t hit on the variation of my new field (“post_promotetime”) that makes the ordering sensitive to it. “orderby=promotetime” doesn’t do it, and neither does “orderby=post_promotetime”. Don’t know what else I’d try…
Forum: Themes and Templates
In reply to: “order by” in a query_posts() ?Okay, but that sorts on the title field of the wp_posts table. I want to sort on a post meta field.
Is it kosher to add a field to wp_posts to hold the data I want to sort on? I can use $wpdb to manage that data, no problem. There’s nothing in the codebase that relies on field order out of the database, is there?
Forum: Plugins
In reply to: Directory/file creation problemI “resolved” this by turning off safe_mode. I’m on a dedicated box, so it’s no harm.
Forum: Fixing WordPress
In reply to: WordPress is TAKING OVER THE PLACE!!!Okay, I’ve figured out a bit more about this.
If I go into Options > Permalinks and hit the “Update Permalink Structure” link, all my plain, non-WP URLs work fine for a while. Then, after a while, they don’t anymore. I don’t have any idea of what action causes them to stop working.
Forum: Fixing WordPress
In reply to: Creating RSS feed by using only some of the categories?I want to use that to create Feedburner feeds pointed at various categories. I actually want to “feedburn” one feed for one category, and another for everything else. Problem is, Feedburner barfs on URLs with commas in them.
I’m trying to hack WordPress so it accepts another character (a hyphen, specifically) as the category separator, but I can’t find where that work gets done. I added this to the very top of wp-rss2.php and to index.php, but it didn’t make any difference:
if (isset($_GET['cat'])) {
$_GET['cat'] = preg_replace('/-/', ',', $_GET['cat']);
}
When I do that, the comma-separated list of cats in the query string still works, but a hyphen-separated list gives me all posts.
I can’t seem to find any reference to $_GET[‘cat’] or $request[‘cat’] in any of the code!