WordPress.org

Ready to get started?Download WordPress

Forums

Custom Content Type Manager
First-timer's support kind request (2 posts)

  1. kryvulena
    Member
    Posted 2 years ago #

    Hello

    I'm really just getting started in understanding how CCTM works and your potential advises will help me, indeed.

    I wish to have product categories listing defined products assigned to one or more categories.

    I am not quite sure, which method could work at its best at CCTM: using the relation method and assigning product to other posts (as described in the YT clip with movies and actors) that stand for categories or to activate WP categories for custom posts and to print products' indexes by WP categories? Can you advise while keeping in mind there will be ca. 10 different categories and approx. 600 products to assign and manage, please?

    I wish the listing was done by a following repeatable html code inside WP loop to create product indexes:

    Sample 1:

    <div>
    	<a href="url-to-a-custom-post-from-defined-category" title="Custom post title (product name)">
    	<h1>Custom post title (product name)</h1>
    	<span>text from custom textfield 1</span>
    	<span>text from custom textfield 2</span>
    	</a>
    </div>

    Sample 2:

    <div>
    	<a href="url-to-a-custom-post-from-defined-category" title="Custom post title (product name)">
    	<h1>Custom post title (product name)</h1>
    	<img src="url-to-featured-post-image" alt="title="Custom post title (product name)"  />
    	<span>text from custom textfield 1</span>
    	<span>text from custom textfield 2</span>
    	</a>
    </div>

    Where:

    • a "defined-category" regards a WP category OR a custom post type like in the sample with movies > actors
    • text from custom textfield = a text parameter ie. price, size provided at products' custom type posts in a text field (ie. input field).

    I also wonder how to create an index of custom posts (same as movies) that group products (actors).

    I will be very grateful for code samples of the loop with the html and helping me to decide which method could do the work the best. Hope I was able to describe my case in a clear way :-)

    http://wordpress.org/extend/plugins/custom-content-type-manager/

  2. fireproofsocks
    Member
    Plugin Author

    Posted 2 years ago #

    What you're asking is a typical data modeling question. Remember that tags and categories do one thing: they help you search for content. A category stores only one bit of information: its name. You can use relation fields to "categorize" your content, but remember that a post holds much more data.

    Please have a look through the wiki for samples of code, including videos: http://code.google.com/p/wordpress-custom-content-type-manager/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic