Related Articles
Show related articles by current post category for Blog posts
Related Articles
Show related articles by current post category for Blog posts
Gets related Blog posts by first existing post category. You have ability to control how many posts you want to see.
Installation via Command Line
php artisan plugin:install Tallpro.Related
Installation
Install plugin and add it where you want to see on your page. You can use it as prepared component
{% component 'related' %}
Or you can make your own structure
{% for article in related %}
{% set image = article.featured_images.first %}
<li>
<a href="{{url('/blog', {'seo': article.slug})}}" title="{{article.title}}">
<img src="{{ image.path }}" alt="{{article.title}}" />
<span>{{article.title}}</span>
</a>
</li>
{% endfor %}
-
Mattia Matteucci
Simple but very useful! Well done!
-
TallPro author
Yey!! Hope you like it! Thanks!!
-
| 1.0.1 |
First version of Related Mar 04, 2019 |
|---|