• Anonymous

    How to get the navigation that Matt has on his weblog, such as:
    http://photomatt.net/archives/2004/05/11/plugins-from-css-guru/
    notice the <<Offline and The Google Blog >> at the top. I know the tags to use, just do not know where to put them, since the documentation online (on this web site) reads “Generally you might want to use this only in single-post templates. “. But I mainly have one index.php (other than the comments template and syndication). Where is the single post template?

Viewing 10 replies - 1 through 10 (of 10 total)
  • carthik

    (@carthik)

    Index.php is the only template. Depending on what parameters are passed to it, it display the category page, the individual entry page etc.
    To get the navigation you wanted, you will need to edit index.php to include the next, previous tags that you already know about if ($single)

    carthik

    (@carthik)

    if ($single) { <php display the nav links>; }
    where display the nav links is the bunch of tags you want to use.
    put this in index.php just before the part where the posts are displayed, so it displays on the top of the content for the individual entries.

    Thread Starter Anonymous

    Where the if ($single) will go? Tks!

    carthik

    (@carthik)

    anon, what are the tags that you want displayed on index.php for the individual entries? I could properly describe what it takes if I knew that…

    Thread Starter Anonymous

    I want to be able to browse previous and next entries when viewing a single entry.

    Thread Starter Anonymous

    I got it to work. Where are the references, so I can know about $single, for posts, for example. Are there any other tags for archives, categories, etc, like the $single one? Tks!

    carthik

    (@carthik)

    The standard, or at least most useful resources are :
    These forums, and the search tool
    The wiki at http://wiki.ww.wp.xz.cn (check out the usermanual under construction, you can add to the wiki too)
    The docs at http://ww.wp.xz.cn/docs
    That said, there is no place the $single and $cat tags etc are listed. You have
    $name and/or $p for single posts ($single == $name or $p)
    $cat for categories
    $m for date based (monthly) archives, like index.php?m=200405
    You can more of these by turning off permalinks, and clicking on the various links to find whats appended to index.php in those links, which is what I mostly did.

    Thread Starter Anonymous

    Thanks!

    willm

    (@willm)

    I imagine a lot of MT switchers will be wanting this functionality. Any chance of making this post sticky?

    Thread Starter Anonymous

    Actually, the README.HTML that comes with the WP is pretty good. It is just that you need to have some knowledge of PHP to understand it. Take a look, it is very nice.

Viewing 10 replies - 1 through 10 (of 10 total)

The topic ‘Single post navigation’ is closed to new replies.