Native Ads in bbPress Forums: A Developer's Guide
Native ads in bbPress: formats, every template hook for placement, code for sponsored units, labelling rules, plugin options and common mistakes.

A native ad in a bbPress forum is a sponsored message that sits inside the forum’s own layout, as a topic row in a forum list or a unit between replies, styled like the content around it but clearly labelled “Sponsored”. Developers place them with bbPress template hooks such as bbp_template_after_topics_loop and bbp_theme_after_reply_content, or with an ad plugin that already knows those hooks. Two rules matter everywhere: the label must be visible, and paid links must carry rel="sponsored".
This guide covers the formats that work in forums, every bbPress hook we use for ad placement (checked against the bbPress 2.6.22 template files on 21 November 2026), two code examples, the plugin options, and the mistakes we see forum owners make. Our team at Wbcom Designs builds WB Ad Manager, one of the plugins below, and we say where it fits and where it does not.
What does a native ad look like in a bbPress forum?
Forum readers move in two modes. On a forum index they scan topic titles looking for something to open. Inside a topic they read replies top to bottom. A native ad works when it matches the mode the reader is in, and fails when it interrupts it.
Format | Where it sits | Reader mode | Effort |
|---|---|---|---|
Sponsored topic | A real topic, stuck to the top of a forum, posted by a clearly named sponsor account | Scanning titles | No code: bbPress sticky topics |
Sponsored row in a topic list | Before or after the topic loop on a forum page | Scanning titles | Hook or plugin |
In-thread unit | After the first reply, or every few replies | Reading | Hook or plugin |
Forum index card | Above or below the list of forums | Arriving | Hook or plugin |
Sponsored badge on a topic title | Next to the title of a topic a partner paid for | Scanning titles | Small hook |
The sponsored topic is underrated. bbPress already lets a keymaster make a topic sticky in one forum or super sticky across all forums. Create a user account called, say, “Partner: Acme Hosting”, have it post a genuinely useful topic (a discount for members, a free audit offer, an AMA with their team), stick it, and put “Sponsored” in the title. Members can reply and ask questions, which no banner allows.
Where can you place native ads in bbPress?
These are the action hooks in the default bbPress templates that we use for ad placement. We confirmed each one in the bbPress 2.6.22 template files on 21 November 2026. If your theme ships its own bbPress templates, check that it still calls them.
Hook | Template | Where the output appears |
|---|---|---|
| loop-forums.php | Above the list of forums on the forum index |
| loop-forums.php | Below the list of forums |
| loop-topics.php | Above the topic list in a forum |
| loop-topics.php | Below the topic list in a forum |
| loop-single-topic.php | Right after each topic title in a list (good for a badge) |
| content-single-topic.php | Above a topic and its replies |
| content-single-topic.php | Below the whole thread |
| loop-replies.php | Above the first reply |
| loop-replies.php | Below the last reply |
| loop-single-reply.php | Inside each reply, before or after the text |
Notice what is missing: there is no hook that fires between two replies, outside both of them. The usual way to get an in-thread unit is bbp_theme_after_reply_content on every Nth reply. That puts your markup inside the reply container, under someone’s post. So the unit must look clearly separate (its own border, background and label), or readers will think the member wrote it. If you need a truly separate row, override loop-replies.php in your theme and add your own hook there.
How do you add a sponsored unit between replies with code?
This small plugin adds a labelled unit after every fifth reply on single topic pages. Checked on 21 November 2026 against the bbPress 2.6.22 templates and linted on PHP 8.5; try it on staging first.
<?php
/**
* Plugin Name: Forum sponsored unit
*/
add_action( 'bbp_theme_after_reply_content', function () {
static $count = 0;
if ( ! function_exists( 'bbp_is_single_topic' ) || ! bbp_is_single_topic() ) {
return;
}
$count++;
if ( 0 !== $count % 5 ) {
return;
}
printf(
'<aside class="forum-sponsored" aria-label="%1$s"><p class="forum-sponsored__label">%1$s</p><p><a href="%2$s" rel="sponsored nofollow">%3$s</a></p></aside>',
esc_attr__( 'Sponsored', 'forum-sponsored' ),
esc_url( 'https://example.com/forum-offer' ),
esc_html__( 'Our partner offers a free performance check for forum owners', 'forum-sponsored' )
);
} );And the CSS that keeps it from looking like part of the member’s post. Use your theme’s colour variables if it has them.
.forum-sponsored {
margin-block-start: 1.5rem;
padding: 1rem 1.25rem;
border: 1px dashed currentColor;
border-radius: 8px;
}
.forum-sponsored__label {
font-size: 0.75rem;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.08em;
margin: 0 0 0.25rem;
}Two notes on the code. The counter is per page load, so “every fifth reply” restarts on each page of a long thread; that is usually what you want. And the snippet hard-codes one offer. As soon as you have more than one sponsor, you need rotation, scheduling and click counts, which is the point where a plugin saves time.
How do you mark a sponsored topic in topic lists?
If a partner pays for a topic, show a badge on its title everywhere it is listed. This uses a post meta flag you set on the topic (with a custom field or your own admin checkbox).
<?php
add_action( 'bbp_theme_after_topic_title', function () {
$topic_id = bbp_get_topic_id();
if ( $topic_id && get_post_meta( $topic_id, '_forum_sponsored', true ) ) {
echo ' <span class="forum-sponsored__badge">' . esc_html__( 'Sponsored', 'forum-sponsored' ) . '</span>';
}
} );Keep the badge text plain and the same everywhere. “Sponsored” is clearer to readers than “Promoted”, “Featured” or “Partner”, which many people do not read as paid.
How should native ads be labelled and linked?
This is the part that keeps you out of trouble with readers, regulators and Google at the same time.
- Label every unit. In the United States, the FTC’s guide “Native Advertising: A Guide for Businesses” says the format of an ad must not mislead people about it being an ad, and the label should be clear, close to the ad and easy to see on any device. Similar rules apply in the UK and EU.
- Mark paid links. Google asks that paid and sponsored links carry
rel="sponsored"(ornofollow). See Google’s guidance on qualifying outbound links. Unmarked paid links in a forum can be treated as link schemes. - Do not borrow a member’s identity. No real member avatars or usernames on sponsored units. Use a named sponsor account or a neutral icon.
- Respect ad network rules. If you mix AdSense into forum pages, the Google Publisher Policies apply to the user-generated content on those pages too. A thread full of spam or copied content can lose ads on that page.
A good test: show the page to someone who does not know your forum and ask them which parts are paid. If they hesitate, the label is not clear enough.
Which plugins can place native ads in bbPress?
Data from the WordPress.org plugin API, checked on 21 November 2026. Ratings are out of 5.
Plugin | bbPress support | Installs | Rating | Last updated | Notes |
|---|---|---|---|---|---|
7 bbPress positions, including between replies at a set frequency | 300+ | No ratings yet | 4 Nov 2026 | Ours. Also BuddyPress and Jetonomy placements | |
Works on forum pages through its insertion positions and hooks | 300,000+ | 4.9 (2,435) | 28 Oct 2026 | Very flexible; more set-up for forum-specific spots | |
Lists bbPress among its integrations | 20,000+ | 4.9 (1,087) | 9 Nov 2026 | AdSense-focused | |
Advanced Ads | Has forum placements | Closed on WordPress.org | - | Closed 11 Nov 2026 | WordPress.org lists the closure as temporary, pending a full review |
WB Ad Manager is the one we built for this. The free plugin rotates ads in the same placement, schedules them, limits how often one person sees an ad, targets by device, country and logged-in status, and marks managed links with rel="sponsored". Its bbPress module hooks into the forums loop, the topics loop, the single topic and the replies (we read its source for this article). Its honest cons: it is young on WordPress.org with 300+ installs and no public ratings yet, and its country targeting looks up visitor IPs with third-party geolocation services, which you should mention in your privacy policy. WB Ad Manager Pro adds a self-serve advertiser portal, A/B tests that pick a winner, and revenue reports; it starts at $59 a year or $199 lifetime for one site. Most forums do not need Pro until they sell ads to outside advertisers directly.
Ad Inserter is the most widely used general ad plugin and can do almost anything with enough set-up, including insertion through custom hooks and shortcodes. Its own support replies point forum owners to its automatic positions, custom hooks or shortcodes for bbPress pages (thread, February 2026). Pick it if you already know it.
If you were relying on Advanced Ads, note its WordPress.org closure on 11 November 2026. Existing installs keep working, but you will not get updates from WordPress.org while it is closed, so watch the plugin page before building anything new on it.
How do caching and logged-in members affect forum ads?
Forums mix two kinds of visitor, and ads behave differently for each.
- Logged-out readers usually get cached pages. Any targeting decided in PHP (device, country, rotation) is frozen into the cached copy, so every visitor sees whatever the first visitor saw. Use JavaScript-based rotation, or cache variations by device, for targeted units.
- Logged-in members usually bypass the page cache. Rotation works, but every ad query runs on every page view. Keep ad lookups cached in the object cache on busy forums.
- Admins see a different site. Many ad set-ups hide ads from administrators or behave differently when logged in. Always check a placement in a private window as a logged-out visitor, and again as a normal member.
Speed matters more in forums than on blogs, because members open many pages per visit. Reserve space for each ad unit with a fixed height or aspect ratio so the thread does not jump when the ad loads, and lazy-load units below the first screen. Our community performance guide covers caching for logged-in traffic in more detail.
How many ads should a forum thread have?
Fewer than you think. We are not going to quote a click-through rate here, because published “native ad CTR” figures vary wildly by audience and are rarely measured on forums. What we can share is the pattern we see when we review forum monetisation for clients:
- One unit per screen of content is the most a reader tolerates before it feels like an ad page. On a thread, that usually means after the first reply and then no more often than every five to ten replies.
- Short threads (fewer than five replies) need at most one unit.
- Members-only and paid forums should have few or no third-party ads. People who pay for access treat ads as a broken promise.
- Relevance beats volume. A hosting offer in a WordPress help forum is useful. A random display ad is noise.
Track three things for each placement: clicks, how many members hide or block ads (if you offer that), and complaints in your feedback channel. If complaints rise while clicks stay flat, the placement is costing you more than it earns.
How do you sell native ads to sponsors directly?
Ad networks are the easy start, but direct sponsors pay better for a focused forum and fit native formats far better, because they can write a topic that members actually want to read. Here is the process we suggest to forum owners.
- Pull your own numbers. Monthly visitors and page views per forum from your analytics, the countries readers come from, and how many members are active. Sponsors buy a specific audience, so per-forum numbers sell better than a site total.
- Pick two or three products, not a rate card of twenty. For example: a sponsored sticky topic in one forum for a month, a site-wide in-thread unit for a month, and a sponsored AMA thread. Price them as flat monthly fees, which are simpler for small advertisers than CPM.
- Write the rules down before the first deal. What sponsors may promote, how posts are labelled, whether they can reply to members, and that you can remove anything misleading. Share it with every sponsor.
- Approve every creative. No sponsor gets to post or swap creatives without review. A plugin with an approval queue helps once you have more than a handful.
- Report back monthly. Impressions, clicks and replies on sponsored topics. Sponsors renew when they can see what they got.
Tell your members what you are doing. A short post explaining that sponsors help pay for hosting, and how sponsored content is labelled, prevents most of the complaints before they start.
Are your ad units accessible?
Ad units are content too, and forum members include people using screen readers, keyboard navigation and large text. A few checks keep sponsored units from becoming a barrier:
- Wrap each unit in an
<aside>with anaria-labelof “Sponsored”, as the code above does, so screen reader users know what they are entering. - Give every image ad real alt text that says what the offer is, not “banner” or the file name.
- Do not auto-play video or animate units in a reading area. Motion inside a thread pulls attention from the replies and can make some readers feel unwell.
- Make sure the unit and its link are reachable and visible with the keyboard, with a focus outline your theme does not remove.
- Check text contrast on the label in both light and dark modes if your theme supports dark mode.
Popups deserve a special mention. A popup or modal ad that covers a thread is the format forum members dislike most, and on phones it often hides the close button. We leave them out of forums completely.
Common mistakes people report
Recurring problems from WordPress.org support threads and our own client work, checked on 21 November 2026.
- Testing only while logged in as admin. One owner saw every ad as an administrator and none in a private window (wordpress.org thread, July 2026). Test as a logged-out visitor and as a normal member.
- Page caching breaks device or country targeting. Cached pages freeze the first visitor’s ad for everyone, and owners report ads missing after turning on a cache or CDN (January 2025, December 2025). Use client-side rotation or cache variations.
- Units that overflow on phones. Fixed-width ad code gets cut off on small screens (wordpress.org thread, March 2025). Forum replies are narrow on mobile; use responsive units only.
- Ad label shows, ad does not. Ad networks do not fill every page, especially thin or new forum threads (wordpress.org thread, May 2026). Collapse empty slots so readers do not see a lonely “Advertisement” label.
- Sponsored units inside reply boxes that look like member posts. The most common problem we see on client forums, because
bbp_theme_after_reply_contentrenders inside the reply. Style the unit apart and label it. - Paid links without rel=”sponsored”. Common when a sponsor asks for a “normal” link. Say no; it is a search risk for your whole forum.
Should you run ads in your forum at all?
Sometimes the honest answer is no. A small, high-trust forum often earns more from one sponsor a quarter, a paid membership tier or job listings than from display ads. Our overview of community monetization models compares the options, and native ads are only one of them.
Native ads make sense when your forum has steady logged-out search traffic, a clear topic that advertisers want to reach, and enough threads that one unit per thread adds up. They make little sense on a private community where every visitor is a known member.
Is bbPress still a good base for an ad-supported forum?
bbPress works, and it is free. Version 2.6.22 was released on 16 November 2026 and has 100,000+ active installs, with a 3.9 out of 5 rating on WordPress.org. Keep it current: CVE-2026-74010 (broken access control) and CVE-2026-62137 (sensitive data exposure) affect bbPress 2.6.14 and earlier, and CVE-2026-110762 (information disclosure through the BuddyPress activity stream) affects versions before 2.6.19, per CVE.org records published between 31 August and 14 October 2026.
If you are choosing a forum plugin now, compare it with the alternatives in our WordPress forum plugins roundup, and if you run BuddyPress, our BuddyPress forum vs bbPress guide explains how the two fit together. Jetonomy, our newer forum and Q&A plugin, has its own placements in WB Ad Manager (Jetonomy 1.3.0 or later) and an importer for bbPress forums, so moving later does not mean rebuilding your ad set-up.
For the wider set of community tools around a forum (members, groups, events), see our list of WordPress community plugins.
Frequently asked questions
Do native ads work better than banners in forums?
They usually get more attention because they sit where people are reading, but that cuts both ways: a bad native ad annoys more than a sidebar banner nobody looks at. Relevance and a clear label decide whether it helps.
Can I put AdSense between bbPress replies?
Yes, technically, with the reply hooks or an ad plugin. Check the Google Publisher Policies for the content on those pages, keep units responsive, and collapse slots that do not fill.
Do sponsored links need to be nofollow?
Google asks for rel="sponsored" on paid links; nofollow is also accepted. Use one of them on every paid link, including links inside sponsored topics.
Will a theme update remove my ad placements?
Not if you use bbPress hooks from a plugin. If you edited a theme template directly, an update will overwrite it. Keep placement code in a small plugin or a child theme.
Should members be able to hide ads?
For logged-in members, hiding ads (or showing fewer) is a good perk for paid tiers and active contributors. Most ad plugins can target by user role or logged-in status.


