Support » How-To and Troubleshooting » Category archive as homepage

Category archive as homepage

  • I want to have a category archive as home page.

    My dirty solution (and it works) now is:

    Template Name: Home Page
    $homepage = file_get_contents('http://website/category/cat_name/');
    echo $homepage;

    as a custom template, select it on a page and set that page as homepage.

    The only downside (other than a greater load on the server caused by the file_get_contents function) is that the admin bar doesn’t show up on home page anymore..

    Don’t tell me to use wp_query directly on the custom template, I want to set just the category archive itself, is this possible?

    Thanks in advance. 🙂

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Category archive as homepage’ is closed to new replies.