How to add ACF Filed value into feed?
ACF is one of the most renowned plugins in WordPress. Woo Feed plugin is compatible with the ACF plugin. Here we are going to show how we can use acf meta value in our product feed. Here we are going to create an attribute value and will assign it with an attribute. You will assign the value with your expected attribute. The process is pretty easy. So, Let’s start…
- At first, we assume that your ACF plugin is installed. Now, Let’s make a meta field to work with the product.
For this, go through Custom Fields > Add New menu.
- Now, let’s create an option by giving the title and assign it to post type “product” then save the changes.
- Let’s click on the “Add new” button and put a title in the “Field Label” input and by default, it will make a slug and it will show in “Field Name” input.
Now let’s set “Field Type” to “Text” then save the changes. Thus, your ACF field is ready to use with the product.
- Go to any product edit page, you will find a meta box with the name of your ACF meta option name. Here you should find an input text. Add any value you want to set. We set “Poppy Petals Boutique” as the meta value and updated the product.
- Clear the plugin cache.
- Assign the custom field with any channel attribute, we have set “custom_label_0”. Now for an attribute value, let’s find the meta name in our feed product attributes list. We have given the meta name “product_metarial_information”. You can find the meta name is under the “Custom fields and post meta” options group. Set it and generate the feed.
- We can see our “product_metarial_information” meta value (Poppy Petals Boutique) is with the product as we expected.
Thus, you can make ACF meta fields and set in our product feed.