I know this may be stupid question, but how to show latest blog posts on homepage/index.php?
I tried this code but that doesn't show anything:
Then I add this part of code to the end of file and blog posts are showing, but "limit" function is not working, so all post are visible instead only 3:
Have to mention that everything is working on blog.php, post are visible there. So only problem is on index.php with that limit function.
I tried this code but that doesn't show anything:
- Code: Select all
<cms:pages masterpage='blog.php' limit='3' >
<div class="col-md-4">
<div class="newsimg">
<a alt="<cms:show k_page_title />" title="<cms:show k_page_title />" href="<cms:show k_page_link />"><img alt="<cms:show k_page_title />" title="<cms:show k_page_title />" src="<cms:show blog_image />" class="img-responsive"></a>
</div>
<div class="box-poc-bg pl-md pt-md pr-md blog-section-mb">
<div class="boxHome-height blog-section">
<a alt="<cms:show k_page_title />" title="<cms:show k_page_title />" href="<cms:show k_page_link />" class=""><h3 class="section-heading mb-sm"><cms:show k_page_title /></h3></a>
<div class="linija"> </div>
<cms:excerptHTML count="50" ignore="img"><cms:show blog_content />
</cms:excerptHTML>
</div>
</div>
</div>
</cms:pages >
Then I add this part of code to the end of file and blog posts are showing, but "limit" function is not working, so all post are visible instead only 3:
- Code: Select all
<cms:else />
<cms:embed "blog_list.html" />
</cms:if>
Have to mention that everything is working on blog.php, post are visible there. So only problem is on index.php with that limit function.