Works with the AI Agents you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIDeepSeekDeepSeekMuseMuse+22 more

    Wordpress Auto Publisher Pipeline

    1

    Automate WordPress content publishing with REST API, Gutenberg blocks, SEO metadata, and paywall injection.

    $12

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned
    Wordpress Auto Publisher Pipeline

    Wordpress Auto Publisher Pipeline

    Example session with this skill installed

    I need a Python script to push an article to WordPress. It should include Yoast SEO descriptions, be marked as premium for Google Reader Revenue Manager, and have an ad block after the second paragraph.

    • Read your context and instructions
    • Compiled the wordpress auto publisher

    I have generated a Python publishing script that handles the REST API connection, Gutenberg block wrapping for the ad injection, and the specific metadata keys for Yoast SEO and Google Reader Revenue Manager.

    WordPress Automation Pipeline Script

    import os
    import requests
    from base64 import b64encode
    from dotenv import load_dotenv
    
    # Load credentials from .env
    load_dotenv()
    WP_URL = os.getenv("WP_URL")
    WP_USER = os.getenv("WP_USER")
    WP_APP_PASS = os.getenv("WP_APP_PASS")
    
    def publish_premium_content(title, paragraphs, seo_desc):
        endpoint = f"{WP_URL}/wp-json/wp/v2/posts"
        auth = b64encode(f"{WP_USER}:{WP_APP_PASS}".encode()).decode()
        
        # Inject Ad Block after paragraph 2
        if len(paragraphs) > 2:
            ad_block = '<!-- wp:html -->\n<div class="ad-slot">[AD_CODE_HERE]</div>\n<!-- /wp:html -->'
            paragraphs.insert(2, ad_block)
        
        # Wrap in Reader Revenue Manager premium tags
        content_body = "\n".join(paragraphs)
        premium_content = f'<!-- wp:html --><div class="subscriptions-section"><!-- /wp:html -->{content_body}<!-- wp:html --></div><!-- /wp:html -->'
        
        payload = {
            "title": title,
            "content": premium_content,
            "status": "publish",
            "meta": {
                "_yoast_wpseo_metadesc": seo_desc
            }
        }
        
        headers = {"Authorization": f"Basic {auth}", "Content-Type": "application/json"}
        res = requests.post(endpoint, json=payload, headers=headers)
        
        if res.status_code == 201:
            print(f"Published: {res.json()['link']}")
        else:
            print(f"Error: {res.status_code} - {res.text}")
    
    # Example execution
    article_paras = [
        "<h2>Introduction</h2><p>First paragraph content.</p>",
        "<p>Second paragraph content.</p>",
        "<p>Third paragraph that appears after the ad.</p>"
    ]
    publish_premium_content("Automated Premium Post", article_paras, "Custom SEO meta description for Google.")
    

    Next steps

    1. Create a .env file with your WP_URL, WP_USER, and WP_APP_PASS.
    2. Ensure the subscriptions-section CSS class is defined in your WordPress theme or via a plugin.
    3. Test a draft post by changing "status": "publish" to "status": "draft" in the payload.

    Connects securely to your tools. The creator never sees your data.

    About this skill

    The problem

    Manually uploading content to WordPress is slow and prone to formatting errors, especially when dealing with complex Gutenberg blocks, SEO metadata, and ad placements. Standard copy-pasting often breaks paywall tags and internal tracking codes.

    What it does

    • Automates content delivery via WordPress REST API using Application Passwords or JWT.
    • Converts raw text into Gutenberg-compatible HTML with correct heading hierarchies.
    • Injects ad-network placeholders and Google Reader Revenue Manager paywall tags mid-article.
    • Syncs SEO metadata including Yoast/RankMath titles, descriptions, and featured image IDs.
    • Handles media uploads and links them to post payloads dynamically.

    Frameworks & tools

    WordPress REST API, Python, PHP, Node.js, Yoast SEO, RankMath, and Google Reader Revenue Manager.

    Why this beats prompting it yourself

    Generic prompts often fail to wrap Gutenberg blocks correctly, leading to "This block contains unexpected or invalid content" errors in the editor. This skill enforces specific HTML comment structures and metadata schemas required for production-grade publishing pipelines.

    Use cases

    • Building automated news aggregators that publish directly to WordPress sites.
    • Converting large batches of Markdown files into SEO-optimized WordPress posts.
    • Scaling niche sites by automating ad injection and paywall implementation.

    Known limitations

    Requires an active WordPress installation with REST API enabled and Application Password support (WP 5.6+). High-frequency publishing may require WAF tuning to avoid rate limiting.

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for WordPress and WooCommerce.

    Requires WordPress 5.6+ for Application Passwords. Does not handle frontend CSS styling for injected ad containers. Server-side WAFs may require IP whitelisting for high-volume requests.

    How to use

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before buying a skill.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill goes through the trust checks below.

    Security scanned

    Checked by our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    Money-back guarantee

    Doesn't do what its page promises? You get your money back.

    Trust & safety

    Security scan

    Security scan passed 4 days ago

    Permissions

    Network Access
    Environment Variables
    Write Files
    Read Files

    Automates post dispatching to WordPress, formats Gutenberg block comments, and injects SEO/ad tags.

    Listed1 month ago
    Updated4 days ago

    What's inside

    Frequently Asked Questions

    This skill automates the transfer of content into WordPress, handling complex Gutenberg block formatting, SEO metadata for plugins like Yoast, and the precise injection of paywall and ad tags that often break during manual copy-pasting.

    You will need a WordPress site (v5.6 or higher) with the REST API enabled and 'Application Passwords' configured to allow the agent to securely authenticate and post content.

    Yes, the pipeline is designed to work seamlessly with popular SEO plugins like Yoast and RankMath, allowing the agent to automatically populate SEO titles, descriptions, and featured image IDs.

    The skill uses specific HTML comment structures to ensure blocks are valid; if your theme uses non-standard blocks, you may need to map those specific block types within your agent's configuration.

    You receive the complete automation logic for the publishing pipeline, including the schema for REST API interaction, metadata synchronization, and media handling instructions.

    While the skill is optimized for production-grade pipelines, users with high-volume sites should ensure their Web Application Firewall (WAF) or hosting provider isn't rate-limiting the REST API endpoints.

    New in APIs & Backend