How to display image related to a post?
News & Newsletter
Simple news (or blog) and newsletter plugin with statistics, mail logs, components and export & import.
← Back to News & Newsletter Support
A example php code:
$this['news'] .= '
<div class="news col-xs-6 col-md-4">
<a href="news/post/'.$news->slug.'">
<div class="image"><img src="storage/app/media'.$news->image.'" alt="'.$news->title.'"></div>
<div class="date">'.substr($date, 0, 16).'</div>
<h3 class="title">'.$news->title.'</h3>
<div class="text">'.$news->content.'</div>
</a>
</div>';
Last updated
Use this plugin: http://octobercms.com/plugin/manogi-mediathumb
1-4 of 4