Title: Question!
Last modified: January 4, 2026

---

# Question!

 *  [zeerux](https://wordpress.org/support/users/zeerux/)
 * (@zeerux)
 * [6 months, 2 weeks ago](https://wordpress.org/support/topic/question-443/)
 * I know this support is dead since long but I still give it a shot..
 * in the /includes/posts.php, on rows 96, 97, 98 I have this code:
 *     ```wp-block-code
                           $html .= '<a class="arpw-title" href="' . esc_url( get_permalink() ) . '" rel="bookmark">' . mb_strimwidth( get_the_title(), 0, 32, '...' ) . '</a>';                    $html .= '<span class="arpw-tags">' . get_the_tag_list('<p> ',', ','</p>') . '</span>';                    $html .= '<span class="arpw-category"> ' . get_the_category_list(', ') . '</span>';
       ```
   
 * where “0, 32….” gives max characters for the title. I have noticed that some 
   of the posts (its a movieblog) has several categories and I wanted to shorten
   it down but I dont know if its possible (just like the title). I tried insert
   this code instead:
 *     ```wp-block-code
       						$html .= '<a class="arpw-title" href="' . esc_url( get_permalink() ) . '" rel="bookmark">' . mb_strimwidth( get_the_title(), 0, 32, '...' ) . '</a>';						$html .= '<span class="arpw-tags">' . get_the_tag_list('<p> ',', ','</p>') . '</span>';						$html .= '<span class="arpw-category"> ' . get_the_category_list(', ') . mb_strimwidth( get_the_category_list(), 0, 20, '...' ) . '</span>';
       ```
   
 * but it didnt work and Im sure I did something wrong there. If someone sees this,
   I would be happy if you could help me. There are to many categories on the posts
   so I only want to show the 3 or 4 first categories or do like the title, just
   shorten down the characters.

The topic ‘Question!’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/advanced-random-posts-widget_a7acd7.
   svg)
 * [Advanced Random Posts Widget](https://wordpress.org/plugins/advanced-random-posts-widget/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/advanced-random-posts-widget/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/advanced-random-posts-widget/)
 * [Active Topics](https://wordpress.org/support/plugin/advanced-random-posts-widget/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/advanced-random-posts-widget/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/advanced-random-posts-widget/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [zeerux](https://wordpress.org/support/users/zeerux/)
 * Last activity: [6 months, 2 weeks ago](https://wordpress.org/support/topic/question-443/)
 * Status: not resolved