• Instructions to Ask a Question

    For any assistance, please click the "Ask a Question" button and select the Pabbly product for which you require support.

    We offer seven comprehensive applications designed to help you efficiently manage and grow your business:

    Our support team endeavors to respond within 24 business hours (Monday to Friday, 10:00 AM to 6:00 PM IST). We appreciate your understanding and patience.

    🚀 Exclusive Lifetime Offers 🚀

    We invite you to take advantage of our special one-time payment plans, providing lifetime access to select applications:

    • 🔥 Pabbly Connect — Lifetime Access for $249View Offer
    • 🔥 Pabbly Subscription Billing — Lifetime Access for $249View Offer
    • 🔥 Pabbly Chatflow — Lifetime Access for $249View Offer

    Make a one-time investment and enjoy the advantages of robust business management tools for years to come.

Guide for Setting Up Custom Fields in WordPress Posts via API

Status
Not open for further replies.
Comprehensive Guide: For Setting Up Custom Fields in WordPress Posts via API

This guide will walk you through the process of creating a new WordPress post and populating custom fields in Pabbly Connect using:
  • CASE 1: ACF (Advanced Custom Fields)
  • CASE 2: META

CASE 1

Part 1: Setting up WordPress for Advanced Custom Fields or ACF

Step 1: Install and Activate the ACF Plugin

  1. Log in to your WordPress dashboard.​
  2. Navigate to Plugins -> Add Plugin.

    1755944410569.png
  3. In the search bar, type "Advanced Custom Fields" or "ACF".​
  4. Choose the plugin of your choice and click Install Now.

    1755944460251.png
  5. Once the installation is complete, click Activate.

    1755944537070.png
  6. You will now see a new menu item called ACF in your dashboard.

    1755944610260.png

Step 2: Create a Field Group and Fields

This is the most critical part for the posting through API. You will create a field group with a few simple fields to confirm the connection works.
  1. Navigate to ACF -> Field Groups.​
  2. Click Add New.

    1755944880281.png
  3. Enter the Field Group Title: Name it something easy to recognize, like Test Field Group.​
  4. Click + Add Field Group and Enter the values of following:
    Choose the Field Type
    Enter the value of Field Label
    Enter the value of Field Name
    Enter the Default Value if applicable.​
  5. Click Save Changes
    .
    1755946210481.png


    Group Settings: Enabling REST API Access
    After setting up your custom fields, you need to enable them for API access. To do this, follow these steps:
    1. After clicking Save Changes on your Field Group, scroll down the page to the Settings section.​
    2. Within the Settings box, find and click on Group Settings to expand it.​
    3. Locate the Show in REST API setting.​
    4. Toggle the button to Enabled.​
    5. Then Click on Save Changes

      1755946902267.png


      This action makes your entire Field Group and all of its custom fields accessible through the WordPress REST API, allowing your API tool to read and write data to them.


CASE 2

Part 2: Setting up WordPress for META


Step 1: Create the Custom Plugin

You will create a simple plugin to hold the code for your meta box.
  1. On your computer, create a new folder and name it.​
  2. Inside that folder, create a new PHP file and name it.​
  3. Open you folder and paste the complete code into it.​

Step 2: Upload and Activate the Plugin

  1. Navigate to Plugins -> Add Plugins.

    1755947532475.png
  2. Click the Upload Plugin button.​
  3. Choose the zip file and click Install Now.

    1755947832629.png
  4. Click on Install Now.​
  5. Click on Activate Plugin

    1755947959069.png
--------------------------------------------------------------------------------------------------------------------------------------------------------------

Response received in Pabbly Connect for ACF


1755952769520.png


Dashboard View
1755952565408.png


Response received in Pabbly Connect for META

1756099183544.png


Note:
When you select META as the Custom Field Parent, the Meta Field values will be visible only in the API output and not on the dashboard.


------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
 
Last edited:
Status
Not open for further replies.
Top