how to make a category page (ex. food category) my initial default page?

Hi there,
Just wondering on how to make a category page (ex. food category)
my initial default page?
Thanks,
al.lladoc@gmail.com

  • jmskarte
    • Site Builder, Child of Zeus

    Hello Al,

    Welcome to WPMU community!
    I hope you are well today and thanks for your question.

    You can achieve this by follow following steps:-

    1)-You can make a page template that looks exactly like your category template, only using the query_posts function to pull posts from your chosen category into play. Assign the page template to the page

    2)- Go to Administration > Settings > Reading panel.
    Set Front page displays to a static page
    In the drop down menu for Front Page select your newly created page.

    Let me know if you need further info on this?

    Cheers
    James

  • jmskarte
    • Site Builder, Child of Zeus

    Hello Al,

    Pls follow following steps.

    I am taking the example as a t

    1)- First note down the category id e.g food category in your case.
    Here is how you can do it
    Go to Manage categories and hover your mouse over a category.The cat id will show up. Lets suppose your category id is 5

    2)- Now go to your newly created template
    There will be code something like that

    <?php while ( have_posts() ) : the_post(); ?>

    3)- Place
    query_posts('cat=5');
    just above that code.

    Thats it.

    Let me know how it goes!

    Cheers
    James

  • AL
    • New Recruit

    Hi James,
    I'm sorry I could not find the "Manage Categories", all I have is "Product---->Product Categories" and when I hover over a category it shows "http://www.mydomain.com/wp-admin/edit-tags.php?action=edit&taxonomy=product_category&tag_ID=50&post_type=product" . I'm not sure if that is the tag_ID=50.

    2. How Can I create a template? that shows a "(have_posts() )".
    3. By the way I am using gridMarket theme template... How can create a featured
    products that automatically shows on top of the page?

    Pls bear with me...
    Thank you.

  • AL
    • New Recruit

    Hi James,
    But I still need to know how to make a page template to make it my initial default page.
    and how to create a featured product that can be automatically shows at the top of the page.
    thanks again,
    Al

  • jmskarte
    • Site Builder, Child of Zeus

    Hello Al,

    Its actually a very easy.

    Here is how you can do it

    1)- You need to create a featured category. So first create a category called featured.

    2)- Create a new page.
    Place following code on it

    <h1>Featured Products</h1>
    [mp_list_products paginate="true" page="1" per_page="10" order_by="price" order="DESC" category="featured"]

    <h1>Our Products</h1>
    [mp_list_products paginate="true" page="1" per_page="10" order_by="price" order="DESC" category="food"]

    3)- Now Go to Administration > Settings > Reading panel.
    Set Front page displays to a static page
    In the drop down menu for Front Page select your newly created page.

    See screenshots also

    Let me know if you need further assistance.

    Cheers
    James

  • AL
    • New Recruit

    Thanks James, I was able to set my front page from a category, but it's just that the grid was distorted.
    1. Is there a was to fix it?

    my second question is:
    2. How can I create a new template? Just like what you have said before.
    I wanted to learn how to use the "query_posts('cat=5');".

    Thank you,

    From your previous email:
    1)- First note down the category id e.g food category in your case.
    Here is how you can do it
    Go to Manage categories and hover your mouse over a category.The cat id will show up. Lets suppose your category id is 5

    2)- Now go to your newly created template
    There will be code something like that
    <?php while ( have_posts() ) : the_post(); ?>
    3)- Place
    query_posts('cat=5');

    just above that code.

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.