<p>If your front-end using twig, then please check the <code>pageInfo.currentPage</code> variable <a href="https://craftcms.com/docs/2.x/templating/paginate.html#the-pageinfo-variable" rel="nofollow noreferrer">https://craftcms.com/docs/2.x/templating/paginate.html#the-pageinfo-variable</a></p>
<p>your final implementation would similar to</p>
<pre><code>{% paginate craft.entries.section('blog').limit(10) as pageInfo, pageEntries %}

{% if pageInfo.currentPage == 1 %}
  {# render best products here #}
{% endif %}

{% for entry in pageEntries %}
  {# render item here #}
{% endfor %}

{# render pagination link here #}

</code></pre>

CC BY-SA 4.0
2022-02-19T16:33:55.290Z
2022-02-19T16:33:55.290Z
Dzulfikar Adi Putra
<p>I'm currently using pagination on a database site but I'm having trouble to paginate only part of the content for page 2.</p>
<p>Here is an example:</p>
<p>Index (page 1):</p>
<ul>
<li>Best products</li>
<li>All Products (paginated content page 1)</li>
</ul>
<p>Page 2:</p>
<ul>
<li>Best products (I don't want this here!)</li>
<li>All Products (page 2)</li>
</ul>
<p>How can I remove the &quot;Best products&quot; from page 2 when I'm paginating?</p>
<p>Thanks!</p>

<frontend><pagination><paginate>
Paginate part of the content from page 2
# Paginate part of the content from page 2

(Asked by: username_0 on 2022-02-19)

I'm currently using pagination on a database site but I'm having trouble to paginate only part of the content for page 2.

Here is an example:

Index (page 1):

* Best products
* All Products (paginated content page 1)

Page 2:

* Best products (I don't want this here!)
* All Products (page 2)

How can I remove the "Best products" from page 2 when I'm paginating?

Thanks!

**Tags:** frontend, pagination, paginate


---

## 1 answers

### Answer by username_1 on 2022-02-19. Score: 1

If your front-end using twig, then please check the pageInfo.currentPage variable https://craftcms.com/docs/2.x/templating/paginate.html#the-pageinfo-variable
your final implementation would similar to
{% paginate craft.entries.section('blog').limit(10) as pageInfo, pageEntries %}

{% if pageInfo.currentPage == 1 %}
  {# render best products here #}
{% endif %}

{% for entry in pageEntries %}
  {# render item here #}
{% endfor %}

{# render pagination link here #}


---

