setting up product page templates

Discussion in 'WordPress' started by sixrfan, Jul 28, 2010.

  1. #1
    i just added the first, of many, products to this site: http://bandit4x4.com/wordpress/4x4-truck-parts/steering-parts/oem-stock-idler-arm-bushings/

    i have a few questions though about entering additional products:

    1. in additon to the products, I also want a separate Blog where I submit stories. i know the blog stories will be posts, but should i enter my products as posts or pages? basically, is there a way to have the blog page ignore posts from certain categories (which would be the product categories)???

    2. is there any way to setup a product template so i don't have to type in all the headings each time i add a new product. all my product submissions will look the same. can i avoid constantly typing in "Product", "Applications", "Features", and all the other headings in a product submission???

    please advise. thanks in advance!
     
    sixrfan, Jul 28, 2010 IP
  2. Cash Nebula

    Cash Nebula Peon

    Messages:
    1,197
    Likes Received:
    67
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Wordpress can be setup to use Custom Post Types, so in addition to "Add Post" you can have "Add Blog Post", "Add Widget Post" etc.

    I'm sure you can setup a product template too, but I'm not so sure how to go about it. There are a lot of plugins available but I have not used them.
     
    Cash Nebula, Jul 30, 2010 IP
    sixrfan likes this.
  3. sixrfan

    sixrfan Well-Known Member

    Messages:
    354
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    101
    #3
    thanks. on a related note though (kind of in regard to question 1 above), how do i select a specific category that should be the only category that appears on my blog page?

    for instance, if you look at this blog page (http://bandit4x4.com/wordpress/blog/), its showing both the postings from my many product categories and the postings from my "Offroading Stories" category. How do I just limit it to the "Offroading Stories" category???
     
    sixrfan, Jul 30, 2010 IP
  4. Cash Nebula

    Cash Nebula Peon

    Messages:
    1,197
    Likes Received:
    67
    Best Answers:
    0
    Trophy Points:
    0
    #4
    You can either use a plugin or edit the code directly. There are lots of plugins, such as List Category Posts.
    If you want to edit the code, add a query_posts line below the comment block in loop.php, like this:
    
     * @since Twenty Ten 1.0
     */
    ?>
    
    [COLOR="Blue"]<?php query_posts('category_name=Offroading Stories'); ?>[/COLOR]
    
    <?php /* Display navigation to next/previous pages when applicable */ ?>
    
    Code (markup):
     
    Cash Nebula, Jul 30, 2010 IP
  5. sixrfan

    sixrfan Well-Known Member

    Messages:
    354
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    101
    #5
    just what the doctor ordered. thank you!
     
    sixrfan, Jul 31, 2010 IP