• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

WP SITES

2785

Original Genesis & WooCommerce Tutorials & 6000+ Guaranteed Code

Snippets

  • Try Premium
  • Log in

After Every 2nd Post Add Content

This code enables you to add a widget area after every 2nd post on any type of archive. This way you can add advertisements or any other type pf content, after every 2 posts like you see in the following screenshot :

Note : You can also use the code to show content after every 3rd, 4th, 5th, 6th or any other number of posts on any type of archive page in Genesis.

Register or login to access the code :

Register for full access

Related Tutorials

  • Customize Archive Template For Genesis With Ads Before or After Each Entry
  • Insert Different Ads After Every Entry Using Custom Archive Page Template

Reader Interactions

Comments

  1. KONAN YAMADA says

    October 16, 2017 at 2:27 am

    Hello, I have a question.
    Regarding this article, I will try to add Adsense infeed banner code in space of “After Every 2nd Post”.
    However, this code is made by the sandwiched by .
    In this case, How should I modify in above code?

    the code is like this
    ——————-

    (adsbygoogle = window.adsbygoogle || []).push({});

    ——————-

    Log in to Reply
    • Brad Dalton says

      October 16, 2017 at 2:37 am

      Paste the Adsense code into a custom HTML widget in the widget named : Widget After Every 2nd Post

      Log in to Reply
      • KONAN YAMADA says

        October 16, 2017 at 7:19 am

        I understand.
        I didn’t notice that it is added new widget in widget page if I added code that you give me in function.php.
        Thank you so much!

        Log in to Reply
  2. KitS says

    October 4, 2017 at 11:27 pm

    Hey Brad, I’m loving this!! I can think of so many things I could add in the extra areas.
    Thanks so much for the great work and helping to educate us all. 😉

    Log in to Reply

Leave a Reply Cancel reply

You must be logged in to post a comment.

Primary Sidebar

Code written by Brad Dalton specialist for Genesis, WooCommerce & WordPress theme customization. Read More…

Advertise · WPEngine · Genesis · Log in

  • Access Problems
  • Account Details
  • Consulting
  • Tags
 

Loading Comments...
 

You must be logged in to post a comment.