自分のコンテンツをX回投稿するごとに挿入する

Facebookの投稿の間に広告やコンテンツを追加する。

var number_of_posts = 5,
    content_to_add = 'Add content here',
    i = 1;
$('#cff .cff-item').each(function(){
  if( i % number_of_posts == 0 ) $(this).after('<div class="cff-item">'+content_to_add+'</div>');
  i++;
});

最初の2行の変数を編集して、いくつの投稿の後にコンテンツを挿入するか、またどのようなコンテンツを追加するかを定義する。コンテンツはテキストでもHTMLでも構いません。

特定のフィードにのみコンテンツを追加する必要がある場合は、ショートコードにクラスを追加することができます:

Comments Box SVG iconsUsed for the like, share, comment, and reaction icons

Comments outperform likes as social proof by a wide margin and nobody's leveraging this.

The like is anonymous. The comment has a name, a face, and someone's actual words about your business.

That's the thing that makes a buyer trust you, not the heart count. But comments live inside Instagram, three taps deep, where your customers will never go looking.

Pull them onto your homepage and you've built a testimonial wall in real time, written by real customers, that you never had to ask anyone to write.

#smallbusinesstips #instagramtips #socialproof #instagramforbusiness #customertestimonials #instagramcomments #smallbiztips #contentmarketing #socialmediatips #instagrammarketing
... See MoreSee Less

You can hit 100,000 views and walk into your shop the next day to the same five people.

The algorithm sent your reel to people 1000 miles away. Not your customers.

Local businesses don't need viral reach. They need local reach, geo-tagged posts, local hashtags, and a website that shows up when someone in your suburb finally Googles you.

#localbusiness #smallbusinesstips #instagramforbusiness #localseo #localmarketing #smashballoon #wordpresstips #smallbiztips #instagramgrowth #localcommunity
... See MoreSee Less

You posted 30 reels this year and your website has none of them.

The reels took hours to make. Strangers saw them for two seconds and scrolled.

The customers who actually visit your site never see the work that's already proving you're real.

You don't need to post more. You need to put what you've already posted where the people who matter are landing.

#smallbusinesstips #wordpresstips #instagramforbusiness #contentmarketing #localbusiness #socialmediatips #smashballoon #websitedesign #contentstrategy #smallbiztips
... See MoreSee Less

Someone's on your site at 9:30pm wanting to ask one question.

Your phone goes to voicemail. Your contact form sends a 24-hour autoresponder.

By morning they've booked the competitor. Almost half of local buying decisions start after work, and most small businesses treat 9-5 like it's still 1990.

A WhatsApp button changes that. Customer messages you.

You answer when you open. You've already won.

#LocalBusinesssmallbusinesstips #wordpresstips #whatsappbusiness #localbusiness #wpchat #customerservice #smallbiztips #ecommerce #wordpressplugin #salestips
... See MoreSee Less

The right review on the right page closes the sale.

A cupcake review next to your cupcakes does the work. A wedding-tier review on a checkout page doesn't.

Reviews Feed Pro now lets you build Collections from Google, Yelp, Facebook, any source you've connected, and pin them as floating Review Alerts to the exact pages they belong on.

#wordpress #wordpressplugin #smashballoon #reviewsfeedpro #googlereviews #socialproof #ecommerce #woocommerce #conversionrateoptimization #onlinestore
... See MoreSee Less

Adding a WhatsApp chat button to your WordPress site takes 5 minutes, and most local businesses still don't have one.

The customer sees a small green button in the corner, taps once, and WhatsApp opens with your number filled in.

No form, no email capture, no "we'll get back to you in 24 hours."

The fastest setup is WPChat. Add your number, pick the pages, done.

Salons and plumbers two suburbs over have one.

The 9pm customer landing on your site has nothing to tap.

#whatsappbusiness #wordpresswebsite #wordpressplugin #smallbusinessmarketing #customersupport #wpchat #servicebusiness #livechat #leadgeneration #websitetips
... See MoreSee Less

Three habits separate the local businesses still winning on Facebook in 2026 from the ones bleeding reach.

I went through 20 salons, plumbers, and restaurants this week and the winners all had the same three things: native vertical Reels recorded on a phone, Facebook Events for every promo, and replies to every comment inside an hour.

Facebook is still pushing local content harder than anyone realizes.

The businesses that gave up are leaving customers on the table.

#smallbusinessmarketing #facebookmarketing #localmarketing #facebookforbusiness #facebookreels #servicebusiness #wordpresswebsite #LocalSEO #facebookreach #marketingtips
... See MoreSee Less

Most small business websites are open 24 hours a day and can answer zero questions.

A contact form at 9pm is the same as a locked door. Customers do not wait. They close the tab and find someone who replies.

The fix is a chat button that opens straight into the apps they already use. WhatsApp, Messenger, Instagram DMs.

Same traffic, suddenly converting.

#wordpresstips #smallbusiness #livechat #WhatsAppBusiness #ecommercetips
... See MoreSee Less

Load more

そして、上のスニペットの4行目にあるフィードをターゲットにする:

$('.feed1 .cff-item').each(function(){

X回の投稿ごとに異なるコンテンツを追加するには、次のようにします:

var number_of_posts = 5,
    content_to_add = [
    'Content 1',
    'Content 2',
    'Content 3'
    ],
    i = 1,
    count = 0;
$('#cff .cff-item').each(function(){
   if( i % number_of_posts == 0 && count < content_to_add.length ){
     $(this).after('<div class="cff-item">'+content_to_add[count]+'</div>');
     count++;
   }
   i++;
});
サポート

ドキュメントに答えが見つからない?

サポート

この記事は役に立ちましたか?