Take a look at this thread:
http://ww.wp.xz.cn/support/topic/38046
and you can also play with the template tags to have displayed just a title, or the title and an excerpt, or…
Mmm … I don’t think that’s what I’m searching for, at least by judging the example stated in that thread…
I quickly made a ‘mockup’ of what I’m searching for, all the links are hardcoded, so nothing is automatically …
here: http://www.damn.be/test.php
the whole weblog is here: http://www.damn.be/weblog
Any idea’s? I tried searching for it, but came up with no links (but maybe I’m searching for the wrong things…)
1. All the links to your site gave a 403 – forbidden error.
2. Either you didn’t describe exactly what you want, or I misunderstood… because that home.php template file does exactly what you asked.
Whoops, played to long with .htaccess … could you try again? 😀
I tried that home.php, but it gave an error (Fatal error: Call to undefined function: get_header() in /home/geert/www/htdocs/weblog/home.php on line 12), let me look at it …
(thanks for helping 🙂 )
Usually I am reluctant to help people who refuse to read everything on the pages I linked for them.
Today I make an exception 🙂 – so back to the basics!
It says in the title of the thread it is a template file. There is also a reference in the first post that it was designed for the Default (Kubrick) theme… another flag telling you that the home.php should be in the theme folder, as all the template files.
You uploaded it in the wrong place. To learn more about the templates and how they function, click on the Codex page I linked above the Template_Hierarchy.
Ha! *blush* …
But like I said, this isn’t 100% what I’m searching for.
I would like to know what code would ‘search’ for the most recent “post” in my weblog, and display the title from the post as a link. Like in this ‘made up’ example:
http://www.damn.be/test.php
And not with a small blue bar on top of the weblog itself, saying there are post in different categories …
I don’t know the code for such a webpage, I’m no wizard in PHP or MySQL, so I really don’t know where to start searching 🙁
Might be worth you taking a look at kg-archives whioch come VERY close to what you seem to want. You an find them here:
http://katesgasis.com/2005/05/01/kg-archives-plugin/
I use them on my site here:
http://www.yellowswordfish.com/index.php?pagename=full-archives
Whoa! that is simply fan-tas-tic! Exactly what I’m searching for! thanks a million 🙂
But I stumble on another problem. I want to use this [kgarchives /] tag in a page which is not in my weblog, my wordpress is installed in the folder \weblog, and I would like to have those links to posts in my \index.php file …
I don’t really follow what you mean. But.. if you mean you want to make this a ‘home’ page then WP will let you do that. You just need to define the template I think (never tried). Look through the codex for creating a home page. I don’t see why kg-archives should not work on that.
Someone else may know different ot figure out what you mean…
I’ve created a test2.php file which goes like this:
[code]
<?php define('WP_USE_THEMES', false);
require('./weblog/wp-blog-header.php');
get_header();?>
<div id="content" class="narrowcolumn">
<kgarchives />
</div>
<?php get_footer(); ?>
[/code]
You can see yourself that it’s not working: http://www.damn.be/test2.php
Wordpress is installed here: http://www.damn.be/weblog
Any idea’s why that [kgarchives /] tag is not working??
You still didn’t learn to read 🙂
In the installation instructions of that plugin it says:
3. Create a page.
4. Put <!−−KGSortForm−−> and <!−−KGSortArch−−> tags in your post.
You have, according to your own post – <kgarchives /> and it is in your code.