How can I change the output display of my pagination?

I could see that you are trying to achieve the following output: <div class=”pagination”> <span>Page {current} of {total pages}</span> {links here} </div> And you attempted it like so: ‘before_page_number’ => ‘<div class=”pagination”><span>Page ‘. // wrapped for clarity $paged .’ of ‘ . $term->max_num_pages . ‘</span></div>’ But that will actually add the markup before each and … Read more

Display Custom Taxonomy names

it looks like your get_terms() call is incorrect, the argument is not an array and you have a typo in taxonomy name (‘product_category’ instead of ‘product_categories’) it should be <?php $terms = get_terms( array( ‘taxonomy’=>’product_categories’, ‘hide_empty’=> false ) ); ?> If this will not help it would be best if you could let us know … Read more

Display a specific hierarchical level of a specific custom taxonomy

Change: get_the_category() to get_the_terms( null, ‘taxonomy_name’ ). get_category_link( $cat->cat_ID ) to get_term_link( $cat->term_id ). get_category( $category->category_parent ) to get_term( $category->parent ). If you want to use the same function for multiple taxonomies, you can accept the taxonomy name as an argument and pass it to the first item above: function display_cat_level( $level = 0 , … Read more