News & Newsletter

Simple news (or blog) and newsletter plugin with statistics, mail logs, components and export & import.

Back to News & Newsletter Support

webBook
webBook

How to display image related to a post?

gergo85
gergo85

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

Dmitriy
Dmitriy

how can i get a thumbnail?

gergo85

1-4 of 4