WordPress.org

Ready to get started?Download WordPress

Forums

How to use archives.php of Ryan's Kubrick theme (6 posts)

  1. pankaj
    Member
    Posted 9 years ago #

    I have been trying to make use of archives.php of Ryan's Kubrick theme like
    http://boren.nu/archives/
    So far I know this has to do with page templates. But I am unable to go farther than this idea. Any help is apprciated. I have the default the install of 12/19/04 nightly with kubrick dropped in.
    Regards
    Pankaj

  2. idowens
    Member
    Posted 9 years ago #

    I'm using 1.35a and have an archive page at http://idowens.com/wordpress/archives.php and thats the look you're going for, this is the code I use:
    <h2>Search</h2>

      <?php include "kubrick-searchform.php"; ?>

    <h2>Monthly</h2>
      <?php wp_get_archives('type=monthly'); ?>

    <h2>Category</h2>
      <?php wp_list_cats(0, '', 'name', 'asc', '', 1, 0, 1, 1, 1, 1, 0,'','','','','') ?>

    <h2>Recent Posts</h2>
      <?php get_recent_posts(); ?>

    <h2>Recent Comments</h2>
      <?php get_recent_comments(); ?>

    You can edit it to you heart's content to get your desired effect.
    -Ian

  3. idowens
    Member
    Posted 9 years ago #

    by the way, the searchform uri you'd need to change...also, the 'recent comments' is something you have to change in my-hacks.php for that php call to work....

  4. pankaj
    Member
    Posted 9 years ago #

    Thanks Ian, My problem is that I get a 404 Page not found error when I goto
    http://hindi.pnarula.com/haanbhai/archives.php
    Please be aware that it is a Hindi site so you might see junk chars. Also notice that this archives.php is in the
    wp-content/themes/kubrick/
    directory while we try to access it from the root of the blog.
    Pankaj

  5. idowens
    Member
    Posted 9 years ago #

    ahh yes....i seem to remember having a time w/ this myself...I think I edited the uri path that called for archives.php to make it an ABSOLUTE path.....in other words, instead of it linking to /archives.php it now links to the ABSOLUTE path of http://www.me.com/folder/wordpress/archives.php....

  6. pankaj
    Member
    Posted 9 years ago #

    Finally solved the problem. As usual the solution is simple once I have figured it out. But before that kudos to Ryan and developers for the nice page templates. I am testing this WP 1.3 alpha-5. Now here is the skinny
    In Ryan's adaption of Kubrick theme, he has included links.php and archives.php page templates. I was trying to get these puppies working. The way to get these working is to create empty pages and assign the respective templates to them. For example let us say you want to get links.php working
    1. Make sure you have the links.php in the themes/kubrick/ directory. It is there in Ryan's Kubrick RC2.
    2. Goto Write->Write Page
    3. Give the Page Title, nothing in the page content.
    4. MOST IMPORTANT - from page templates dropdown choose the Links template and click on Create New Page.
    5. Now you can check your Links page by visiting http://{blog url}/index.php?pagename=links.
    6. If you are using nice permalinks You would also notice that permalinks structure has also changed to incorporate this change. For example above might come as
    RewriteRule ^archives/?$ /blog/index.php?pagename=links [QSA,L]
    You want to make sure your .htaccess is updated accordingly.
    Thanks everyone.
    Pankaj

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.