WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I need help to create a template for an archive with specific a keyword by category sorted by date. This is the code for my archive page so far: http://pastebin.com/WEjNGhJ1

My client wants every navigation menu item to go to an archive page for that particular keyword. Example: "Beauty" navigation location will display the beauty category's posts, sorted by date, using the archive page format.

My navigation menu is in the sidebar which you can see here on my site: http://dev.freelanceu.net/mjl/livelong

share|improve this question
anybody here?? I really need to accomplish this task please help me... – markyeoj Dec 5 '11 at 9:08
up vote 0 down vote accepted

Categories will use category.php by default as their archive template (site.com/category/category-name). Customize that with the code you've used here, rather than using a 'page template'.

If you don't want it to say category/ in the URL there are plugins or functions.php code you can use to remove it that can be found numerous times in the archive here.

share|improve this answer
It's category.php I'm just trying to view it as a page. Ok, I already removed the page template comment. here's the code .. pastebin.com/YYddNi0g now, is there anywat to customize my code to create an archive with specific keyword by category sorted by date, keywords are in navigation as you see on my posted website.. thanks.. – markyeoj Dec 6 '11 at 0:33
What does this "It's category.php I'm just trying to view it as a page." mean? Category archives aren't 'pages' in the WordPress sense. – Christopher Dec 6 '11 at 14:29

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.