Taxonomy and Custom Post type with Collpase

You can do something like this <h3> Portfólio </h3> <?php $catprod = get_terms( array( ‘taxonomy’ => ‘categoria-produto’, ‘order’ => ‘DESC’, ‘parent’ =>0, ‘hide_empty’ => false, )); // Todas as categorias ?> <div class=”panel-group”> <div class=”panel-heading”> <?php foreach( $catprod as $cat ): ?> <h3 class=”panel-title”> <a data-toggle=”collapse” href=”#<?php echo $cat->slug ?>” class=”accordion-toggle” data-parent=”#accordion”> <?php echo $cat->name … Read more

Reusable Dynamic Taxonomy Shortcode

Ok, I figured out the solution and have it working to where I can swap out the attribute for the shortcode with any taxonomy available associated with every post type: function custom_taxonomy_list_shortcode( $atts ) { $atts = shortcode_atts( array( ‘term’ => ‘location’, //Set whatever default taxonomy you like ), $atts ); global $post; $custom_taxonomy = … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)