Show custom category archive as front page and remove taxonomy slug from urls

I was able to solve this by removing CPT UI plugin, registering the custom post type with: function create_post_type() { $args = array ( ‘public’ => true, ‘has_archive’ => true, ‘show_ui’ => true, ‘supports’ => array(‘revision’,’title’,’editor’,’author’, ‘thumbnail’, ‘custom-fields’), ‘taxonomies’ => array( ‘category’ ), ‘labels’ => array( ‘name’ => __( ‘work’ ), ‘singular_name’ => __( ‘work’ … Read more

Taxonomy listing issue – does not display how I would like

SOLVED I found the answer in another post that was answered by @Gustav for anyone looking a solution like you can follow the link or view the code below it works perfectly. https://wordpress.stackexchange.com/questions/123059/list-post-from-current-taxonomy-children THE WORKING CODE <?php $term_slug = get_query_var( ‘term’ ); $taxonomyName = get_query_var( ‘taxonomy’ ); $current_term = get_term_by( ‘slug’, $term_slug, $taxonomyName ); $termchildren … Read more

Add URL field to wordpress taxonomy

Never done it through direct coding. I use Advanced Custom Fields for this. Any type of custom field can be shown there, text, image, checbox, etc. And you have to set the location rule to be the Taxonomy screen. Category screen with custom fields: Documentation on how to retrieve the data.

Filter/Sort Post Form On Taxonomy page

That happens because wp_dropdown_categories, by default, defines the name of the dropdowns as ‘cat’. You are showing 2 dropdowns in the form, and both are named ‘cat’, because you didn’t define a name for them. So when you submit the form, you get two query vars named cat. For example, if you want the second … Read more

Querying posts globally based on custom taxonomy with its own taxonomymeta table

For those running into issues in the future, this is what I did: I made my pre_get_posts function that queries the taxonomy as normal for testing if an taxonomy ID is not in a list: $q->set( ‘tax_query’, array(array( ‘taxonomy’ => ‘tax’, ‘field’ => ‘id’, ‘terms’ => tax_get_inactive(), ‘operator’ => ‘NOT IN’ ))); Then, I implemented … Read more

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