WordPress.org

Ready to get started?Download WordPress

Forums

Change Defaul page to Categories (4 posts)

  1. hun4r
    Member
    Posted 3 years ago #

    Hello,
    i want change Defaul index page to Categories
    when some one open my website Automaticaly go to some Categories
    for example
    http://www.site.com/?cat=7

  2. esmi
    Forum Moderator
    Posted 3 years ago #

    You could add a custom query to your theme's index.php template file.

  3. hun4r
    Member
    Posted 3 years ago #

    in this link there are many codes and they confuse me please can you give me the specific code that it will do what i want

  4. Ganners
    Member
    Posted 3 years ago #

    So do you want to link them to a random category? Or just a category of your choice?

    You could set up a redirect from your index.php, or turn your index.php into a custom category page itself.

    If you simply want to redirect, which does slow down site loading time, then put in

    header("location: http://www.site.com/?cat=7");

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.