{"id":3432935,"date":"2013-02-04T11:19:00","date_gmt":"2013-02-04T11:19:00","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/please-consider\/"},"modified":"2016-08-20T21:16:03","modified_gmt":"2016-08-20T21:16:03","slug":"please-consider","status":"closed","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/please-consider\/","title":{"rendered":"Please consider&#8230;"},"content":{"rendered":"<p>I had a problem with the images heights being larger than the line height. Also had a problem with posts that had long names, over 100 characters. I have made modifications to the plugin and HOPE that they may be implemented in future updates.<br \/>\nthe changes I made<br \/>\nadded  <code>style=&quot;height:50px&quot;<\/code> to the div at line 97<br \/>\n<code>&lt;a href=&quot;&#039;.get_permalink().&#039;&quot;&gt;&#039;.&#039;&lt;div style=&quot;height:50px&quot;&gt;&#039;.$image<\/code><br \/>\n(will probably add this to the css instead .relative-post-thumbnail div {height:50px})<\/p>\n<p>to fix the title issue had to do a little more<br \/>\nadded<br \/>\n<code>$posttitle =  strlen(get_the_title()) &gt; 110 ? substr(get_the_title(), 0, strpos(get_the_title(),&#039; &#039;,100)).&quot;...&quot;:get_the_title();<\/code><\/p>\n<p>above each <code>$relative .=<\/code><\/p>\n<p>and then replaced all  <code>get_the_title()<\/code> with  <code>$posttitle<\/code><br \/>\nso for the first one (with thumb)<br \/>\n<code>&lt;a href=&quot;&#039;.get_permalink().&#039;&quot;&gt;&#039;.&#039;&lt;div style=&quot;height:50px&quot;&gt;&#039;.$image. $posttitle;&#039;&lt;\/div&gt;&lt;\/a&gt;<\/code><\/p>\n<p>and the second one<br \/>\n<code>&lt;a href=&quot;&#039;.get_permalink().&#039;&quot;&gt;&#039;.$posttitle;&#039;&lt;\/a&gt;<\/code><\/p>\n<p>Thanks for a very helpful widget \ud83d\ude42<\/p>\n<p>https:\/\/wordpress.org\/extend\/plugins\/relative-posts\/<\/p>\n","protected":false},"template":"","class_list":["post-3432935","topic","type-topic","status-closed","hentry","topic-tag-widget"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/3432935","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/3432935\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=3432935"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}