Title: Using Advanced Custom Fields
Last modified: June 23, 2022

---

# Using Advanced Custom Fields

 *  Resolved [maxstabile](https://wordpress.org/support/users/maxstabile/)
 * (@maxstabile)
 * [3 years, 11 months ago](https://wordpress.org/support/topic/using-advanced-custom-fields-3/)
 * Hello, is there any way to use the ACF plugin in defining where the blocks should
   appear? For example, I want to add a custom field for management if a certain
   post alludes to some specific product and then assign that product in the ad-
   inserter instead of using category (too broad) or tags (a possibility, but difficult
   to maintain a multi-person management) I would use that custom field.

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [Spacetime](https://wordpress.org/support/users/spacetime/)
 * (@spacetime)
 * [3 years, 11 months ago](https://wordpress.org/support/topic/using-advanced-custom-fields-3/#post-15764908)
 * Hello,
 * Not sure if I understand your question.
    Each Ad Inserter block has many settings
   to define insertion position: [https://adinserter.pro/documentation/automatic-insertion](https://adinserter.pro/documentation/automatic-insertion)
 * You can also define conditions for insertion:
    [https://adinserter.pro/documentation/black-and-white-lists](https://adinserter.pro/documentation/black-and-white-lists)
 * And you can use shortcodes, widgets or PHP functions for manual insertion:
    [https://adinserter.pro/documentation/manual-insertion](https://adinserter.pro/documentation/manual-insertion)
 *  Thread Starter [maxstabile](https://wordpress.org/support/users/maxstabile/)
 * (@maxstabile)
 * [3 years, 11 months ago](https://wordpress.org/support/topic/using-advanced-custom-fields-3/#post-15788870)
 * Hi, thanks for the quick reply!
    I will try to be more precise.
 * I want to create a custom field that will display the list of courses for sale
   in my e-commerce. My idea is to make this custom field menu where in each post
   the marketing team could mark which course or course area that post refers to.
   I already know how to do this with ACF. But I don’t know if there is a possibility
   in ad-inserter to add the custom field as display criteria.
 * I know I could do it with tags. But, having a single choice dropdown would help
   me to have more control.
 * Thanks in advance for the answer!
 * Translated with [http://www.DeepL.com/Translator](http://www.DeepL.com/Translator)(
   free version)
 *  Plugin Author [Spacetime](https://wordpress.org/support/users/spacetime/)
 * (@spacetime)
 * [3 years, 11 months ago](https://wordpress.org/support/topic/using-advanced-custom-fields-3/#post-15789188)
 * OK, if I uderstant your question correctly you would like to check custom field
   value in Ad Inserter – as the condition for the insertion.
 * You can do this with a simple [PHP code](https://adinserter.pro/documentation/code-editing#php-code)–
   of course, this is server-side check:
 *     ```
       <?php
       $acf_value = get_field ("your_field" );
       if ($acf_value == '') {
       ?>
   
       AD CODE
   
       <?php
       }
       ?>
       ```
   

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Using Advanced Custom Fields’ is closed to new replies.

 * ![](https://ps.w.org/ad-inserter/assets/icon-256x256.jpg?rev=1502039)
 * [Ad Inserter - Ad Manager & AdSense Ads](https://wordpress.org/plugins/ad-inserter/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ad-inserter/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ad-inserter/)
 * [Active Topics](https://wordpress.org/support/plugin/ad-inserter/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ad-inserter/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ad-inserter/reviews/)

## Tags

 * [custom field](https://wordpress.org/support/topic-tag/custom-field/)

 * 3 replies
 * 2 participants
 * Last reply from: [Spacetime](https://wordpress.org/support/users/spacetime/)
 * Last activity: [3 years, 11 months ago](https://wordpress.org/support/topic/using-advanced-custom-fields-3/#post-15789188)
 * Status: resolved