mongrol
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: about page with no dates, static hack?Hi mong, here’s some mini-hack goodness
At the start of index.php do this;
$blog = 1;
if($cat == 3) { $order=’ASC’;}
require(‘wp-blog-header.php’);
That coupled with your content mini-hack does exactly what you want.
(ok, I`m responding to myself but some others might find it useful :))Forum: Fixing WordPress
In reply to: about page with no dates, static hack?Ah bum. It seems the orderby is done in the wp-blog-header.php which is already way past by the time it gets to my splitting code. Can anyone think of a sensible way to get different orderby’s on a per category basis?
Forum: Fixing WordPress
In reply to: about page with no dates, static hack?With a some help from Gamez I’ve done the following tiny hack.
In index.php I’ve cut out the content div to a separate file and called it cat-about.php. I’ve then inserted the following code;
<?php if($cat == 2) {include (‘cat-about.php’);}
else {?>
<div id=”content”>
<?php if ($posts) { foreach ($posts as $post) { start_wp(); ?>
…….. rest of normal div.
I can then edit the about content div and rip out the dates to make it look like a static page. Simple and effective. I’m also hoping I can do the same to make 1 particular category order in a different manner (date asc, rather than desc), time will tell.Forum: Fixing WordPress
In reply to: about page with no dates, static hack?Techgnome,
It does seem the sensible way to do it, by integrating it fully into the site but since I want to use features in 1.1 when its out I don’t want to go too far down the customising route without being able to upgrade easily. I think at this point in time I’ll keep the site offline and concentrate on the content, then move to 1.1 and hack it to bits then. Is the upgrade path really so bothersome? I’ve a funny feeling that when I use 1.1 I’ll eventually be stuck with it.Forum: Everything else WordPress
In reply to: New blood needed.Damn, this had to happen on the day I was going to follow NM’s tutorial and knock my site into something my own. And now I feel ashamed to be British.
Can we turn off Anon posting now please?