Custom fields

When asked to do so, Broadcast will copy the custom fields of the post to the children. According to the WordPress Codex on custom fields, they are used to store meta-data about the post.

Normally all fields can be broadcasted without problems, but depending on which plugins are installed or your post workflow, you might want to handle some fields differently.

In the admin settings, Broadcast offers a custom field blacklist, a whitelist and a protect list. In these fields you can specify which fields you do not want broadcasted. If you do not want the fictional custom field post_coauthor broadcast, just write its name in the blacklist, for example.

Custom field broadcast settings

The fields also take wildcards: the fictional field above will be matched if you write *coauthor or post_co*.

The blacklist will prevent the specified fields from being broadcasted.

The whitelist acts as exceptions to the blacklist.

The protect list will broadcast custom fields to the child posts only if the field does not already exist on the child. It does not update existing custom fields. This requires that the child post already exists.

 

Comments

  1. I used the custom field name startwith ‘*appearance’ in blacklist. But, it is not work for me. What can i do? Please help me
    1. You’re going to have to show me a debug dump of the post in question in order for me to see what is going on.

  2. When I try to broadcast my product list, the image from the category product didn’t update to the child site. For the additional info, the “Link this post to its children”, “Custom fields”, and “Taxonomies” have been checked before I published the product
  3. Hello!
    How can I prevent all fields with product descriptions from being updated in child posts on a network of sites? So that only the price is updated when there is a change in the parent post. Please tell me? I couldn’t figure out which field name I needed to add to the rules.
    1. Do you know the name of the custom field that contains the price?

      Add it to the whitelist.

      And then write * in the protect list.

      That way, all fields except those in the whitelist will not be updated.

  4. Thank you! I dont know the name of the custom field that contains the price. I tried adding different price names to the white sheet, but it didn’t work. My sites worked on WooCommerce. Can you tell me what exact price name needs to be added in the whitelist for this to work?

     

    1. Try … _price ?

      You can look at all of the custom fields using a Broadcast tool:

      Admin > Broadcast > Maintenance tab > View post info

       

  5. I have an ACF field in post type. I exclude one of them by blacklisting them with their names.

    now when I update the second site it clears the data from the exclude field, why?

    1. The blacklist will not broadcast the the custom field at all.

      Perhaps the protect list is more to your liking, where it will broadcast the custom field but leave any existing values alone.

Leave a Reply

Your email address will not be published. Required fields are marked *