Robinero
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Order Tax nameFixed by adding “orderby” and “order” in the get terms
eg.
$tax_terms = get_terms($tax,'orderby=id&order=ASC');
Forum: Fixing WordPress
In reply to: Custom Post Type Archive (Taxonomy)My fix for now is creating separate pages depending on slug (page-football-teams.php) and adding a code that filters on CPT, Taxonomy and Term, which I have to manually add.
If anyone has a better idea let me know!
Forum: Fixing WordPress
In reply to: Custom Post Type Archive (Taxonomy)Oh I just realized that’s not what I meant at all.
I need to group things on pages, however I cannot figure out a way to do so, in a “WordPress way”.Forum: Fixing WordPress
In reply to: Custom Post Type Archive (Taxonomy)So you’d suggest creating pages with an if statement?
Could you elaborate it a bit more?Forum: Fixing WordPress
In reply to: Order Tax nameAnyone got an idea?
I feel as if this piece code is limiting me. HmphfForum: Plugins
In reply to: [WooCommerce] Subcategories woocommerceIs there any way of doing this in WordPress way?
Seeing as these lines are just picked up from WordPress.Forum: Plugins
In reply to: [WooCommerce] Subcategories woocommerceIt is kind off what I’m looking for, however I still cannot figure out how to actually extract subcategories from a main category (in this case Producers).
This is what I got so far, $product being global from woocommerce.
<?php get_the_terms( $post->ID, 'product_cat' ); echo $product->get_categories(); ?>
Forum: Plugins
In reply to: [WooCommerce] Selling songs within albumsThat’s pretty close to what I’m looking for, thanks.
I was wondering if it is possible to limit the purchasing to only 1 per product? More or less changing the [minus] and [plus] to a checkbox?Forum: Fixing WordPress
In reply to: TaxonomiesWith the following code I can get the taxonomies in a list, any idea how to attach a description of a taxonomy to that?
?php $taxonomy = 'subproject'; $queried_term = get_query_var($taxonomy); $terms = get_terms($taxonomy, 'slug='.$queried_term); if ($terms) { echo '<ul>'; foreach($terms as $term) { echo '<li><a href="'.get_term_link($term->slug, $taxonomy).'">'.$term->name.'</a></li>'; } echo '</ul>'; } ?>
Forum: Fixing WordPress
In reply to: TaxonomiesIt’s getting closer, but that specific piece of code gets the posts out of CPT or Taxonomy. I want to get all the taxonomies out of CPT.