Hi, I'm new to blogging, and I was wondering where I would find the file to edit my category-post-list page. I actually don't know what the real term for it is, but my problem is the page that WordPress links categories on a custom menu towards. This page, which displays in my URL as "%sitename%/category/%categoryname%" has been bugging me, because I can't find the file that it comes from. I already went to the WordPress codex page for category templates, and I can't find any of the files they mention in my theme's directory. PS: I am using a demo version of the Custom Community theme, and while it works to my needs, this might be the reason the files are hiding from me. So can anyone help me with this? Short(er) Version: Can someone help me find the file location that I can use to edit my "posts-under-a-certain-category archive page"?
WordPress uses a template hierarchy, meaning it'll look for more specific templates for the page it's trying to display and if those templates don't exist in your theme it'll just use a more generic one. For your category pages the order (shamelessly cut and pasted from the WP site) is: category-{slug}.php - If the category's slug were news, WordPress would look for category-news.php category-{id}.php - If the category's ID were 6, WordPress would look for category-6.php category.php archive.php index.php If you don't have any of those other files in your theme, therefore, it's using index.php. Index.php is in every WP theme and is the most generic template that all pages will fall back to in the absence of a more specific template. If you'd like to change something minor in the layout, an easy thing to do with most themes is to copy the index.php, rename it to archive.php (or category.php if you want the tag pages to stay as they are) and just make your changes in there. WP will automatically start using the new, more specific template, though you may need to clear your browser cache.
Ok, I figured it out. It was hidden in archive.php, and I don't think my theme wanted people to be able to edit it. This will allow me to do everything the pro version would give me manually.
editing archive.php is the best option for you. or it seems that you want to remove "category" from ur url. for that you have to use "no category" plugin. and change your Premalink structure .