Add Social Share Buttons to Your Blog Posts with Orbit Fox and AI
Share buttons for the networks you choose, on blog posts unless you ask for more, checked on a live post.
Prerequisites
A site connected to WPVibe running Orbit Fox 3.0.10 or newer (tested on 3.0.14, free) on WordPress 6.9 or newer, with an administrator account.
My WordPress site uses Orbit Fox. Add social share buttons to my blog posts for these networks: [Facebook, X, LinkedIn, WhatsApp, Email]. On computers put them on the [left or right] edge of the screen; on phones [as a bar along the bottom, or the same as on computers]. 1. Run discover_abilities with category orbit-fox. If either orbit-fox/list-modules or orbit-fox/configure-module is missing, stop and tell me to install or update the free Orbit Fox plugin (3.0.10 or newer, on WordPress 6.9 or newer). 2. Run rest_api GET /wp/v2/plugins with status active. If another share buttons plugin is active (AddToAny, Jetpack, Social Warfare, Shared Counts or similar), tell me I may get two sets of buttons, and stop unless I say to go on. Run orbit-fox/list-modules with module_id social-sharing. Tell me whether the module is on, which networks are on (the settings named after a network, such as facebook, twitter for X, linkedin, whatsapp, mail for Email) and which content types it shows on (the display_on_ settings). Also run orbit-fox/list-modules with module_id policy-notice and note whether it is active with enable_policy_notice 1. 3. Build one orbit-fox/configure-module call with module_id social-sharing, active true and these settings (a list of objects, each with name and value, every value a string such as "1"): every network I named set to 1, with its NETWORK-desktop-show and NETWORK-mobile-show settings (for example linkedin-desktop-show) also set to 1 so the button isn't hidden, and every other network that is on now (value 1) set to 0; display_on_posts 1, and 1 for each content type I named (pages, products, courses); for every other display_on_ setting: if the module is active now and the setting is 1 (the buttons may show there today), ask me whether to keep it, otherwise set it to 0; socials_position 0 for left or 1 for right; mobile_position 0 for a bar along the bottom or 1 for the same as on computers. If the cookie notice from step 2 is on, use mobile_position 1 whatever I chose, and tell me why: on phones the bottom bar covers the notice's Accept button. Run the call with dry_run true. If it returns orbit_fox_invalid_settings, tell me which setting and why, fix only that, and run the dry run again. Show me the changes in plain words: what turns on, what turns off. Wait for my yes. 4. On my yes, run the same call with dry_run false. 5. Run rest_api GET /wp/v2/posts with status publish and per_page 1 to get my latest post's link, then get_page_html on that link with selector .obfx-sharing. Confirm there is a link for each network I chose. If there are none, tell me a page cache may still be serving the old page and to clear it. 6. List each change so I can spot-check it. To remove the buttons later: orbit-fox/configure-module with module_id social-sharing and active false; the settings are kept.
Skip pasting the full prompt. Drop this into your AI on a site that already has WPVibe:
Run the “Add Social Share Buttons to Your Blog Posts with Orbit Fox and AI” recipe from the WPVibe cookbook on my connected site.
Readers who like a post would share it, if sharing took one tap. Orbit Fox has share buttons built in, but its settings list twenty networks and every public content type on your site, and switched on as they are, the buttons also show on your products, courses and media pages.
The AI reads Orbit Fox’s share settings, turns on only the networks you name, and keeps the buttons to blog posts unless you ask for more. It shows you every change before saving and saves only on your yes. Then it opens one of your posts and checks that each button is there.
Fill in the networks and where the buttons go. On a computer they sit on the left or right edge of the screen, not under the post; on phones they can be a bar along the bottom. That bar can cover other things pinned to the bottom of the screen (on our test site it covered Orbit Fox’s own cookie notice), so check a post on your phone.
Outcome
Your blog posts show share buttons for the networks you chose, and every change was shown to you before it was saved.