On a single entries page I have the following code:
<div class="article-pagination">
{% set params = {section: 'databytes', order: 'title'} %}
{% set prevDatabyte = entry.getPrev(params) %}
{% set nextDatabyte = entry.getNext(params) %}
{% if prevDatabyte %}
<a href="{{ prevDatabyte.url }}" data-hint="Previous Databyte" class="prev article-pagination-link icon-alone hint--right">
<i class="icon-arrow2-left"></i>
</a>
{% endif %}
{% if nextDatabyte %}
<a href="{{ nextDatabyte.url }}" data-hint="Next Databyte" class="next article-pagination-link icon-alone hint--left">
<i class="icon-arrow2-right"></i>
</a>
{% endif %}
</div><!-- END .article-pagination -->
I am wanting to somehow only paginate through entries that are tagged with the same tag maybe by passing that into the params object is that possible?