Title: [Plugin: WP Category Post List Widget] warning while display
Last modified: August 20, 2016

---

# [Plugin: WP Category Post List Widget] warning while display

 *  Resolved [kamhang](https://wordpress.org/support/users/kamhang/)
 * (@kamhang)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/plugin-wp-category-post-list-widget-warning-while-display/)
 * Hi,
    In the widget, it shows:
 * Warning: _() expects exactly 1 parameter, 2 given in /home/content/26/8842126/
   html/wp-content/plugins/wp-category-posts-list/includes/wp_cpl_output_gen.php
   on line 256
 * Warning: _() expects exactly 1 parameter, 2 given in /home/content/26/8842126/
   html/wp-content/plugins/wp-category-posts-list/includes/wp_cpl_output_gen.php
   on line 256
 * Warning: _() expects exactly 1 parameter, 2 given in /home/content/26/8842126/
   html/wp-content/plugins/wp-category-posts-list/includes/wp_cpl_output_gen.php
   on line 256
 * Warning: _() expects exactly 1 parameter, 2 given in /home/content/26/8842126/
   html/wp-content/plugins/wp-category-posts-list/includes/wp_cpl_output_gen.php
   on line 256
 * Warning: _() expects exactly 1 parameter, 2 given in /home/content/26/8842126/
   html/wp-content/plugins/wp-category-posts-list/includes/wp_cpl_output_gen.php
   on line 256
 * How can I fix it?
 * [http://wordpress.org/extend/plugins/wp-category-posts-list/](http://wordpress.org/extend/plugins/wp-category-posts-list/)

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [HallMarc](https://wordpress.org/support/users/hallmarc/)
 * (@hallmarc)
 * [14 years ago](https://wordpress.org/support/topic/plugin-wp-category-post-list-widget-warning-while-display/#post-2582711)
 * Hmm for me it was fixing a typo for that error.
    (v. 2.0.2 of the plugin at the
   time of writing) Look in wp-content/plugins/wp-category-posts-list/includes/wp_cpl_output_gen.
   php at line 256 for:
 *     ```
       $post_output .= ((true == $op['show_date'])? ' <span class="wp-cpl-date">' . _('Posted on: ', $wp_cat_list_itg_tans) . date('M jS, Y', strtotime($post->post_date)) . '</span>' : '');
       ```
   
 * and REPLACE it with this:
 *     ```
       $post_output .= ((true == $op['show_date'])? ' <span class="wp-cpl-date">' . _('Posted on: ' . $wp_cat_list_itg_tans) . date('M jS, Y', strtotime($post->post_date)) . '</span>' : '');
       ```
   
 * The typo can be seen here `_('Posted on: ',`
    that comma should be a dot (for
   those that aren’t coders the dot (period) here tell PHP to add things together)
 * Please update the plugin ASAP as I see a ton of these errors showing up in Google
   results.
 *  Plugin Author [Swashata Ghosh](https://wordpress.org/support/users/swashata/)
 * (@swashata)
 * [13 years, 12 months ago](https://wordpress.org/support/topic/plugin-wp-category-post-list-widget-warning-while-display/#post-2582724)
 * Hello HallMarc, thanks for your reply. But the comma was intended to pass the
   translation domain string. The typo was `_('Posted on:', $wp_cat_list_itg_trans)`
   should’ve been `__('Posted on:', $wp_cat_list_itg_trans)`.
    Note the double underscore
   as the function name. This is a WP function which translates and returns string.
 * The typo has been fixed in V2.0.3
 *  [HallMarc](https://wordpress.org/support/users/hallmarc/)
 * (@hallmarc)
 * [13 years, 12 months ago](https://wordpress.org/support/topic/plugin-wp-category-post-list-widget-warning-while-display/#post-2582725)
 * Wow, I completely missed that typo! Thank you for pointing it out. I kept thinking
   it was strange that it was complaining about receiving 2 params.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘[Plugin: WP Category Post List Widget] warning while display’ is closed
to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-category-posts-list_edefec.svg)
 * [WP Category Post List Widget](https://wordpress.org/plugins/wp-category-posts-list/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-category-posts-list/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-category-posts-list/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-category-posts-list/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-category-posts-list/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-category-posts-list/reviews/)

 * 3 replies
 * 3 participants
 * Last reply from: [HallMarc](https://wordpress.org/support/users/hallmarc/)
 * Last activity: [13 years, 12 months ago](https://wordpress.org/support/topic/plugin-wp-category-post-list-widget-warning-while-display/#post-2582725)
 * Status: resolved