When using the get_terms and trying to order the terms using the ‘order’ and/or ‘orderby’ does not work
When using the get_terms and trying to order the terms using the ‘order’ and/or ‘orderby’ does not work
When using the get_terms and trying to order the terms using the ‘order’ and/or ‘orderby’ does not work
The woocommerce product category is just a custom taxonomy. As far as I know all the data is stored as intended by wordpress core. You can find out more about the database structure at the codex page Database Description, the tables you are looking for are wp_terms, wp_term_relationships and wp_term_taxonomy. But you absolutely should look … Read more
import_id parameter for wp_insert_term to create custom ID for category
Show List of Terms (not posts) that have been Recently Updated?
The correct format for filters in the url is: ?filter[listing_area]=northwest&filter[listing_shooting_type]=clay You don’t need to create one ajax call per option, just one which combines the filters as set by the user
Sticky posts per category
This is very simple to list all the categories, even if they do not have any post associated with those. You just need to set following property to false in wp_dropdown_categories. method. ‘hide_empty’ => 0, ‘hide_if_empty’ => 1 Hope this will solve your problem.
Categories order with get_terms_args not working in 4.7
This should do the trick. <?php // start with an empty array $all_term = array(); if ( have_posts() ) { // loop through all posts, this could go outside of the main loop or be part of it, if placing outside the main loop be sure to reset the loop or namespace your queries while … Read more
You don’t need to count or do all the stuff to determine the last element. Check if the result of the function is valid, output the DIV and then inside that run a loop: <?php // Get the terms $terms = get_the_terms( $post->ID, ‘people’ ); // Check if there’s any results, and there’s no error. … Read more