Hi WordPressers,
I'm currently trying to get WordPress to work on my freshly created website http://www.zinneket.be. So far it's been working great - WP is terribly easy to use, big up for that.
I do have two questions at the moment, though.
Firstly, I would like to format the timestamp of a blog post (and comment) as "17u03". I got as far as "17:03" by using
<?php the_time('G:i') ?>
but changing that to<?php the_time('Gui') ?>
doesn't work (I'm no PHP expert but I can guess why it doesn't).I've tried instead
<?php the_time('G') ?>u<?php the_time('i') ?>
but that strangely renders as1294524187u03
Can anyone tell me the right code?
And then my second question: I'm trying to get the author's name of each post linked to the overview page of that author. The page with all of his posts on it, in other words. I've tried a couple of things. This gets me closest to what I'm looking for:
but oddly that renders a wrong author id code (7 instead of 4). So when I click on it, I get the message indicating there's no posts to display.
<a href="<?php echo get_author_posts_url($id); ?>" class="auteur"><?php the_author() ?></a>
What's the right way to do this?
Thanks very much!