Grow your CSS skills. Land your dream job.

WordPress Category Template

  • # June 25, 2013 at 10:55 pm

    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?

    # June 25, 2013 at 11:33 pm

    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

    # June 25, 2013 at 11:52 pm

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

    # June 26, 2013 at 7:02 pm

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

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".