Answers.Body: <p>This seems to be what I want:</p>
  <pre><code>{% set featuredIds = entry.featured.ids() %}
  {% set notFeaturedIds = query.id(['not']|merge(featuredIds)).ids() %}
  {% set allEntries = featuredIds|merge(notFeaturedIds) %}
  {% set query = craft.entries.id(allEntries).fixedOrder(true) %}
  </code></pre>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-03-17T06:27:01.133Z
Answers.LastActivityDate: 2023-03-17T06:27:01.133Z
Answers.UserDisplayName: Tyssen
Body: <p>I have an entries field that can be used to select entries to be featured. I know I can remove the featured entries from the loop with this:</p>
  <pre><code>{% set query = craft.entries.section('blog') %}
  {% set featuredIds = entry.featured.ids() %}
  {% set query = query.id(['not']|merge(featuredIds)) %}
  {% paginate query.limit(5) as pageInfo, entries %}
  </code></pre>
  <p>so then I can loop through both the featured entries and then the non-featured ones.</p>
  <p>What I can't figure out though, is how to maintain the number of entries on the first page. For example, if there are 3 featured entries, with the way things are now, I'd have 3 + 5 on the first page but then 5 on every page after that.</p>
  <p>How do I have it so I'd have 3 featured + 2 non-featured on page 1 and then the rest 5-per-page as normal?</p>
  
Tags: <entries><pagination>
Title: Show featured entries first without affecting pagination
ThreadText: # Show featured entries first without affecting pagination
  
  (Asked by: username_0 on 2023-03-17)
  
  I have an entries field that can be used to select entries to be featured. I know I can remove the featured entries from the loop with this:
  
  ```
  {% set query = craft.entries.section('blog') %}
  {% set featuredIds = entry.featured.ids() %}
  {% set query = query.id(['not']|merge(featuredIds)) %}
  {% paginate query.limit(5) as pageInfo, entries %}
  
  ```
  
  so then I can loop through both the featured entries and then the non-featured ones.
  
  What I can't figure out though, is how to maintain the number of entries on the first page. For example, if there are 3 featured entries, with the way things are now, I'd have 3 + 5 on the first page but then 5 on every page after that.
  
  How do I have it so I'd have 3 featured + 2 non-featured on page 1 and then the rest 5-per-page as normal?
  
  **Tags:** entries, pagination
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_0 on 2023-03-17. Score: 1 | Accepted answer
  
  This seems to be what I want:
  
  ```
  {% set featuredIds = entry.featured.ids() %}
  {% set notFeaturedIds = query.id(['not']|merge(featuredIds)).ids() %}
  {% set allEntries = featuredIds|merge(notFeaturedIds) %}
  {% set query = craft.entries.id(allEntries).fixedOrder(true) %}
  
  ```
  
  
  ---
  
  