WebberZone / top-10

Top 10 - Popular Posts plugin for WordPress

Home Page:https://webberzone.com/plugins/top-10/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Widget include categories doesn't work

ajaydsouza opened this issue · comments

<p>
<label for="<?php echo esc_attr( $this->get_field_id( 'include_categories' ) ); ?>"><?php esc_html_e( 'Only from categories', 'top-10' ); ?>:</label>
<input class="widefat category_autocomplete" id="<?php echo esc_attr( $this->get_field_id( 'include_categories' ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'include_categories' ) ); ?>" type="text" value="<?php echo esc_attr( $instance['include_categories'] ); ?>" />
<input type="hidden" id="<?php echo esc_attr( $this->get_field_id( 'include_cat_ids' ) ); ?>" name="<?php echo esc_attr( $this->get_field_id( 'include_cat_ids' ) ); ?>" value="<?php echo esc_attr( $instance['include_cat_ids'] ); ?>" />
</p>

Widget needs to be modified to use the category/taxonomy IDs directly instead of the lookup