I want to use a category page as the home page of my blog. Is that possible and how can I do it? It tried it with a .htacces rewrite rule but that didn't worked.
Eliminating all of the other solutions, there is at least one remaining:
You will need to pass the appropriate category
The benefit of redirecting at
Note that you can hook into the process even earlier, such as at
If all you want to do is display a specific category on the blog posts index, you can accomplish that with a simple filter of the main
If you want to modify the template, then you can do one of two things:
And if you want the blog posts index URL to look like:
Then you can use a Static Front Page, and assign a static page called "main" as your blog posts index.
And if this is your objective:
...then the accepted answer is correct for your use case.
Category page can't be home page (just doesn't work like that).
There are two other options:
Since you seem fine with redirect try following. Create
There is probably some more tidy way to do this with hooks, but nothing I can think of right now.
The most semantic way to do this instead of using a redirect (extra connection time) is to create a custom page template.
If you want to redirect to a particular category i.e category id 3 then copy the content from category.php and make another template like category-3.php After that
In wordpress reading we need to set home as posts page and for home page select the New Homepage by Cat 3 as a template.