[Plugin: Category Posts] Post titles not wrapping after adding image
-
I have amended the coding for category posts so that a custom field (‘rating’) is dislpayed next to the post tite in the widget area.
The code I have used is the following:
<li class="cat-post-item"> <a href="<?php the_permalink(); ?>"><?php the_post_thumbnail( 'cat_post_thumb_size'.$this->id ); ?></a> <a class="post-title" href="<?php the_permalink(); ?>" rel="bookmark" title="Permanent link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a><p class="rating-widget"><?php echo get_post_meta($post->ID, 'rating', true); ?></p>
If there isn’t a custom ‘rating’ field for the post, the post title wraps correctly. However, if I add a rating custom field (and the image is displayed) the post title doesn’t wrap – it goes through the boundaries of the widget and isn’t visible.
This only seems to happen in IE.
I was just wondering if anyone knew why this was and how I can fix it?
The “Latest Book Reviews” shows the issue (all posts have the custom field). “Latest Blog Posts” use the same plugin but don’t have the custom field and therefore wrap correctly.
I’m using a child theme.
Any help would be appreciated. Thanks!
- The topic ‘[Plugin: Category Posts] Post titles not wrapping after adding image’ is closed to new replies.