Open FeXd opened 1 year ago
I made a new category for a post, but it wasn't visible. I did some googling and a suggestion was that it may be hidden because it has no posts in it yet. That appears to be true.
Current dropdown code:
<?php wp_dropdown_categories(array('name' => 'category', 'orderby' => 'name', 'taxonomy' => 'category', 'selected' => 1)); ?>
Suggested update:
<?php wp_dropdown_categories(array( 'name' => 'category', 'orderby' => 'name', 'taxonomy' => 'category', 'hide_empty' => 0, 'selected' => 1 )); ?>
Note the addition of hide_empty
hide_empty
I made a new category for a post, but it wasn't visible. I did some googling and a suggestion was that it may be hidden because it has no posts in it yet. That appears to be true.
Current dropdown code:
Suggested update:
Note the addition of
hide_empty