• Frank

    (@fwusquare2com)


    Hello, is there a way to insert content like ad banners into a list? For example, to show a banner in between every 10 posts? We have been asked to create one longer list that displays the most recent post items continuously but with ad banners showing every 10 posts. Currently on a Home page, I have 4 separate lists (each with 10 posts) and an ad banner in between each placed shortcode. But since I can’t figure how to make the list continuous, each list is a different category.

    Any help or guidance would be much appreciated!

    Regards,
    Frank

    https://www.ads-software.com/plugins/w4-post-list/

Viewing 1 replies (of 1 total)
  • Thread Starter Frank

    (@fwusquare2com)

    Hello, I figured out a workaround by creating multiple lists which make use of the plugin’s Offset function. Using Offset, each listing set is a defined range of posts and I have each set separated by an ad banner. In my example, each list set has 10 items per page.
    Set 1 (most recent 10 posts) – No offset.
    Set 2 (2nd set of recent posts 11-20) – Offset at 10 (starts listing with post #11)
    Set 3 (3rd set of recent posts 21-30) – Offset at 20 (starts listing with post #21)
    and so on.
    Thus to the user it appears to be one long seemingly continuous list of recent posts of the same category with ads appearing here and there.

    Now if this is the purpose of the Offset function, I’m glad I learned how to use it properly. If not, perhaps others may find this useful. If there is a more efficient way, please let me know.

    Regards,
    Frank

Viewing 1 replies (of 1 total)
  • The topic ‘How to insert content or ads between posts in a list?’ is closed to new replies.