Question!
-
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:
$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:
$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.
You must be logged in to reply to this topic.