4 Ways To Execute Code After Any Number of Posts On Paginated Archive Pages

Writing code which executes after a specific number of posts on any number of paginated archive pages in Genesis is tricky.

This tutorial contains 4 code snippets which enable you to :

  1. Execute code after any number of posts on the 1st paged archive only. Only executes after 1 specific post.
  2. Execute code after any number of posts on the 1st page only of any archive. Executes after every post.
  3. Execute code after any number of posts on the all paginated archive pages.
  4. Execute code after any number of posts on the 1st paginated archive and execute on all posts on archive page 2 and greater.

Here’s the 4 code snippets :

Was This Tutorial Helpful?

Free

$0

Access only to all free tutorials per month.



Monthly

$75

Access to 10 premium tutorials per month.


Tutorial Request


Includes code guarantee and coding support.

Yearly

$500

Access to 15 premium tutorials per month.


Monthly Tutorial Request


Includes code guarantee and priority coding support.