• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

Desired content between Loop

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › General Discussion › Desired content between Loop

This topic is: resolved
  • This topic has 3 replies, 2 voices, and was last updated 12 years, 7 months ago by rfmeier.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • June 3, 2013 at 4:46 am #43783
    vajrasar
    Member

    How one can insert desired content (posts from categories or custom post type) between the loop on the home page.

    Explaining the question - On home page every post is shown (10 posts), in a project I need to add desired content (like Ads, posts from custom post type etc) after every 3-4 posts.

    Any Ideas?

    Thanks for the help.


    I make WordPress websites using Genesis Framework.

    WordPress/Genesis Development | Customizations

    June 3, 2013 at 7:19 am #43804
    rfmeier
    Member

    Vajrasr,

    Here is what I was able to quickly come up with.  You will want to hook the 'genesis_after_entry' (Genesis 2.0) or 'genesis_after_post' for pre Genesis 2.0.

    Use the global $loop_counter to determine where you are at count-wise within the loop;

    I hope this helps.


    Ryan Meier – Twitter

    June 3, 2013 at 7:28 am #43805
    vajrasar
    Member

    Thanks a ton@rfmeier, I believe that will work smoothly.

    I also found something same by Nick at - http://designsbynickthegeek.com/tutorials/conditional-loop-actions

    Will mark the topic resolved as soon as I implement it. Thanks.


    I make WordPress websites using Genesis Framework.

    WordPress/Genesis Development | Customizations

    June 3, 2013 at 7:30 am #43808
    rfmeier
    Member

    You're welcome.  Glad I can help.


    Ryan Meier – Twitter

  • Author
    Posts
Viewing 4 posts - 1 through 4 (of 4 total)
  • The forum ‘General Discussion’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2026 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble