You need to do 2 queries, 1 for the terms (using get_terms) and then a post query, an example is:
$taxonomy = 'portfolio_types';
$tax_terms = get_terms($taxonomy);
foreach ($tax_terms as $tax_term) {
echo '<li>' . '<a href="#'.$tax_term->slug.'"' . '>' . $tax_term->name.'</a></li>';
}
endwhile; endif;
wp_reset_query();
$the_query = new WP_Query( 'post_type=portfolio&portfolio_types="$taxonomy );
while ( $the_query->have_posts() ) :
$the_query->the_post();
the_title();
endwhile;
You will need to change the post_type and the taxonomy to yours (not tested though)
Basically what the script does is find all the taxonomy terms, and when it finds one it looks for any posts under that term.
Related Posts:
- WP-e-Commerce Adding A Product via Flash Button
- wp-e-commerce plugin – custom payment option
- WP ecommerce – How do I change the product image for each product variation?
- wp-e-commerce plugin – Second Test Gateway payment option [closed]
- How to edit products page of wp ecommerce plugin?
- Permalink issue only with numbers [closed]
- Code not looping over all products of a given category
- How to change the layout of a product page
- style being attatched to tag from outside of style sheets
- wp_reset_query equivalent for WP Ecommerce
- Arrays not working on a WP-Ecommerce product page [closed]
- Existing Ecommerce plugins with Custom Post Types [closed]
- Limit the number of results from wpsc_start_category_query
- How to sell an album for download
- Can WP ecommerce collect card info without charging?
- How to charge shipping in WP e-commerce based on a variant? [closed]
- WP-E Commerce: How to let user leave a personal message/instruction with each product from the products page [closed]
- Why does the first page of one category redirect to empty page 4?
- How to Match Orders to User Sessions in WPeC
- WP Ecommerce, Gold Cart and pagination
- How to organize products by collections with collections description?
- How to randomly generate products pop-up on click in store
- WP e-Commerce hook after creating order?
- WP E-commerce and Display Fancy Purchase Notifications
- insert order number into wp ecommerce order confirmation email
- Switching off shipping in WP-eCommerce
- Change how WP e-Commerce calculates price total at checkout [closed]
- In what files I can change country names of wp-ecommerce plugin? [closed]
- how to get extra info from checkout in wp-ecommerce
- how to get tax percentage in wp-ecommerce
- Sell photos through WordPress [closed]
- Where the variations are stored in the database when using wp-e-commerce plugin? [closed]
- shortcode outputs first before the page content [duplicate]
- WordPress eCommerce plugin for books
- What are WooCommerce starter themes? [closed]
- WP-e-Commerce and W3-Total-Cache integration problem [closed]
- Need Help Finding a WordPress E-Commerce Plugin That Utilises Custom Post Types [closed]
- All permalinks go to products page with WP E-Commerce plugin?
- Is there any site where i can found good documentation of wp-ecommerce plugin?
- WP e-commerce: getting products by SKU
- How to show large image in checkout page using WP Ecommerce plugin [closed]
- modify a function filter
- MarketPress vs. other WP ecommerce solutions [closed]
- Help alphabetically sorting $terms from get terms(‘wpsc_product_category’
- WordPress Jquery Confliction with Plugin
- How do display simple page for printing product info? [closed]
- Where sales manager of WP-Commerce plugin?
- Custom MySQL Query with logic
- Send email on Job Dispatched from WP e-commerce [closed]
- How can I find out what items a user has purchased? [closed]
- Bulk Custom Menu and Wp-Ecommerce
- WP e-commerce: How to select the shipping costs calculation method according to delivery location
- How-To add Custom field in WordPress wp-ecommerce Categories?
- wp e-commerce group product by category [closed]
- E-commerce for wordpress [closed]
- Can the WP e-Commerce Plugin Support a Large Number of Products? [closed]
- E commerce on WordPress [closed]
- Making tags appear as an Unordered list instead of a ‘cloud’
- WordPress plugin Post Creation [closed]
- wp e-commerce – theme problem – why won’t it load wpsc-single_product.php? [closed]
- How to show Best Selling WP E-Commerce Products
- Ecommerce Single Product Next Product Link
- Convert featured images into “product images”
- Hook functions for Wp e-commerce? [closed]
- SQL query – get ids – Advanced Custom Fields / WPeC
- WP-ecommerce : Change the price before inserting it into the cart
- WP-eComerce Advance Meta Tag data in descending order [closed]
- product export and import using xml
- Widget content turns up before title
- GetShopped Ecommerce: hide checkout form from customer until shipping country selected [closed]
- Custom product fields in wp e-Commerce plugin [closed]
- WP E-Commerce creating categories programmaticaly [closed]
- Using Amazon Book Gallery Plugins in WordPress [closed]
- WP-e-commerce (getshopped) – Annoying permalink issue [closed]
- WP-e-commerce (getshopped) Hebrew language files – where can I get them? [closed]
- Unable to upload new file as a product
- WP E-Commerce Custom Meta > Serialized array
- From where wp ecommerce is loading plugin theme files?
- WP E-Commerce WPEC 3.8 Sort Categories
- Can Shopp or WP ecommerce create something as extensive as these sites? Other recommended solutions?
- How to Edit Ecommerce filters URL, h1, h2 , Title
- Link a button to woofunnels model
- Add sub variations in product page
- WordPress – estimate used product
- How to set x-priority header = null while using plugin WP e-commerce?
- Getshopped (WP-e-commerce): show all protucts on one admin page for drag-and-drop ordering [closed]
- WP Ecommerce: Display the “Order Notes” as column in the Sales Log [closed]
- delete attachment for one post without deleting actual attachment post
- wp e-commerce single-product template giving 404
- Multiple while loops not functioning [closed]
- issue displaying variations in custom template using WPeC 3.8.9.2
- Where are Sessions are being started? [closed]
- How to adjust the Cartpress e-commerce plugin?
- making users able to add their own products wp e-commerce [closed]
- WPeC – Adding conditional logic to purchases [closed]
- Shipping charge by country & product weight? [closed]
- Wp eCommerce meta information search [closed]
- Good practical way to do loop within loop to show child custom type using a template code
- A multi-section WordPress store [closed]