Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Other WordPress Category Template

  • This topic is empty.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #45850
    TWG
    Participant

    Sorry to post a WordPress question here but the WordPress forums don’t seem to get answered very quickly.

    I have a post category setup call ‘local’ which has an id of 4. I have tried creating a template named category-4.php, category-local.php, and local.php and none of them seem to apply to my posts that have that category selected.

    Can anyone help me with this?

    #140455
    Senff
    Participant

    Not sure what could be wrong, cause category-local.php should be the one. That template will be used to show all the posts with category ‘local’ if you call it as http://domain/category/local

    #140458
    TWG
    Participant

    well my URL looks like http://mysite.com/category_name/page_title . My permalinks are setup to use /%category%/%post_title%/

    #140640
    eristic
    Participant

    Might try a permalink: /%category%/%postname%/

Viewing 4 posts - 1 through 4 (of 4 total)
  • The forum ‘Other’ is closed to new topics and replies.