Showing taxonomies with terms that are attached to custom post

Perhaps you can change the label of your taxonomy, as seen on the Function Reference Somewhere in your code, there must be something like register_taxonomy(“bikes”, “post”, [ // … ]); you can change it to register_taxonomy(“bikes”, “post”, [ “label” => “Bicycle” ]); PLEASE NOTE that this part is the definition of the taxonomy itself. Changing … Read more

I want to create pagination for my custom post type archive that i am displaying with loop

You Can try this way: add the following before $args if( get_query_var( ‘paged’ ) ): $my_page = get_query_var( ‘paged’ ); else: if( get_query_var( ‘page’ ) ): $my_page = get_query_var( ‘page’ ); else: $my_page = 1; endif; $paged = $my_page; Replace pagination code with this(make sure to add this after endwhile): $total = $projects->found_posts; $page = … Read more

Custom taxonomy if statement

I’m guessing you want to display that information on a single post or a post type? is_tax() conditional tag is used to determine if the archive page of a particular taxonomy/term is displayed. (documented in codex) What you’re probably looking for is has_term() function (documented in codex). So in your case the full condition would … Read more

ACF Custom field not showing in Timber Taxonomy page

In your PHP file… $context[‘topicTax’] = Timber::get_terms(‘topic’); Timber::render(‘my-template.twig’, $context); … is the correct structure. The problem is that WP’s get_terms returns “dumb” objects that don’t have methods for retrieving ACF info. If you still run into issues, verify that those objects are Timber\Terms rather than WP_Term Also, if you’re looking for the more active forum: … Read more

Add active class to foundation 6 tabs while looping categories

Sure, you can use a counter. Just move your while loop a little higher. Something along these lines: <ul class=”tabs” data-tabs id=”example-tabs”> <?php // counter for ul.tabs $i=0; $bulletin_types = get_object_taxonomies( ‘bulletinboard’ ); foreach( $bulletin_types as $bulletin_type ) : $terms = get_terms( $bulletin_type ); foreach( $terms as $term ) : // increment each one $i++; … Read more