• Hi, I have two quick questions about the set-up of my theme that I was hoping to get help with.

    1. I notice the archives.php file allows me to list all my categories etc. but I wish to add a second page on my site that also lists the tags used and then one to show the dates used. But with only one archives.php file I only seem to be able to do this once. Basically, how do I add more files to my theme that will allow me to do this?

    2. Is it possible to set it up so that when you click on one of my categories or tags it lists all the posts under that category with just the title and not necessairly the full blogs under the category?

    Thanks for any help…

Viewing 6 replies - 1 through 6 (of 6 total)
  • 1) archives.php – that is a template file that is used in your theme to display multiple types/pages of content. The same template will be used to display both categories and tags. I don’t know your theme of course but when it is displaying tags the heading on that page should automatically refer to tags, and you will see no mention of categories.

    2) category and tag post lists – that requires a bit of customizing the code. Do you want that as the behavior on ALL category and tag pages? If you are using a free theme, post its name here and I’ll take a look at it.

    Thread Starter prb81

    (@prb81)

    1) So I can use the archive.php file to show a list of all the tags and then use it again to show a separate page with all the categories. Thats what I am trying to do. I don’t want them listed on the same page, but on separate pages if that makes sense?

    2) My site is http://www.giants-history.com. I took the default theme and edited it a bit myself just over the years. Ideally yes, I would want it so that if you clicked on a tag or category then it would list all the titles under them cats/tags, but just the titles as normal sized text.

    Hi

    1) yes, the same template most likely works for both

    2) Post all the code in your archive.php file in a pastebin here
    http://wordpress.pastebin.ca/
    and post here the URL of the pastebin

    Thread Starter prb81

    (@prb81)

    Hi,

    Number 2 there I appear to have figured out myself this afternoon. With regards to number 1 and the template for the archives page, My current archives page is set to list categories, tags and dates when visited. I’m looking to list just categories on one of them and tags on another. Thats what I’m looking to set up.

    One other question. Are you using the latest issue of wordpress? I just uploaded it today but my site no longer lists its categories and when I try to make a new post there are no editing functions and no option to select a category or submit the post. Any ideas what is up there?

    Thanks for your help…

    Hi

    I’m looking to list just categories on one of them and tags on another. Thats what I’m looking to set up.

    That is already in place. You are not yet following how WordPress assigns posts to pages and how template files work. When someone clicks on a category link the archives.php file is called and it displays the category page. When someone clicks on a tag link, archives.php is called and it displays a page of tag links.

    I haven’t experienced the problem you are having with the WP upgrade. I noticed today several posts on the forum about that sort of problem. Search around the forum and see if some answers have been given.

    Thread Starter prb81

    (@prb81)

    Thanks for your help. I managed to overcome all of my issues and will not look into fixing my problem from the upgrade. Cheers.

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

The topic ‘two quick questons’ is closed to new replies.