• I am working with a custom theme and the developer only did what was necessary leaving many holes and major issues which I have now inherited since I took over my position. Then when asked for help he “fired” us so now I am trying to fix a theme that stinks to make it work until I can build a new one.

    The big thing right now is the new archive as we are a Higher Ed site there are a ton of news articles dating back to 2008.

    I have built an archive.php theme and it is working great listing out the posts by date month and year newest to oldest. but when you click on the month/year or tag link it gets screwy.

    When I click on March 2013 the page is /2013/03/ or a tag /tag/specific_tag/ (I am assuming that is correct).

    It is like there is no template for the categories pages. How do I fix this?

    Main Page Link: https://ewc.wy.edu/
    Archive Page Link: https://ewc.wy.edu/news/
    Problem Page: https://ewc.wy.edu/2013/03/

Viewing 3 replies - 1 through 3 (of 3 total)
  • to figure out what templates are used or might be needed, review
    https://codex.www.ads-software.com/Template_Hierarchy

    does your theme have:
    tag.php
    category.php
    date.php
    ?

    if not, then archive.php or index.php will get used for tags, categories,…

    if it is only about the formatting of the titles, you can use the output of body_class() which provides an .archive CSS class for the archive index pages

    btw:

    I have built an archive.php

    if you are referring to the news archive page, then this seems to be using the page template file layouts/Archives.php which is independant of the other archive index templates.

    Thread Starter pjdbck

    (@pjdbck)

    no the theme is missing

    taxonomy.php
    catagory.php
    tag.php
    author.php
    date.php
    attachment.php
    paged.php

    you could make any of those templates, for example from a copy of archive.php, and customize them.

    what exactly is the problem with the date, category and tag archive pages right now, apart from the formatting or the title?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Archive – Category and tag templates/themes’ is closed to new replies.