Passing arugments to a different php? (3 posts)

  1. Anonymous
    Posted 12 years ago #

    I recently made a new template in the same style as my friend's website, mostly just to see if I could do it with WordPress. I was pleasently surprised when I found it that I could, indeed, do it with very little work. You can check it out here:
    Based on this site:
    However, when you click the archives links at the bottom of my page, it passes those arugments to the main index.php and dumps you on the main index.php.
    So, what I was wondering was, is there a way to make archives and permalinks and the like use the template you are currently on?
    For example, if I were on my index.php and I clicked on the 'Computer' category, it would display my posts under that category on index.php. Now, if I were to do the same on dyouji.php, I want it to show those posts on dyouji.php, not index.php. I already tried changing the blogurl setting in wordpress, but it affects the whole site, not just one template.

  2. Anonymous
    Posted 12 years ago #

    There is a way to do... very simple actually, but you need the newest nightly of WP (1.3alpha). It supports %category% in the permalinks, so for specific categories you can have it point to it's own index page.

  3. satoshi
    Posted 12 years ago #

    The categories was just an example, I want it to do that for ALL links, including, but not limited to: permalinks, categories, next entry/previous entry, the calender if I make a template that uses it, monthly archives, etc.

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.