My site's blog "config" looks like below:
As a "Page to display posts" I have page Posts build on blog.php template. I'm showing all of them on Index page - I have main.php template and there I coded displaying recent posts there using that code:
Links look like this because when I use {{ post_link }}, I keep getting mysite.com//post/asdf links.
As a "Page to display posts" I have page Posts build on blog.php template. I'm showing all of them on Index page - I have main.php template and there I coded displaying recent posts there using that code:
Code:
<?php nm_custom_display_recent('
<div class="col-md-6">
<div class="news-image"><a href="/post/{{ post_slug }}">{{ post_image }}</a></div>
<h2 class="news-title"><a href="/post/{{ post_slug }}">{{ post_title }}</a></h2>
<p class="post-date"><em>{{ post_date }}</em></p>
<p class="post-content">{{ post_excerpt }} [...] <a href="/post/{{ post_slug }}">Czytaj dalej</a></p>
</div>
'); ?>
Glowczynski.pl - webmaster, graphic designer, translator.
For any job offers contact me via artur@glowczynski.pl.
For any job offers contact me via artur@glowczynski.pl.