Title: Using ACF fields on the menu
Last modified: August 20, 2016

---

# Using ACF fields on the menu

 *  Resolved [Jos Velasco](https://wordpress.org/support/users/josvelasco/)
 * (@josvelasco)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/using-acf-fields-on-the-menu/)
 * I want to grab a [relationship field](http://www.advancedcustomfields.com/resources/field-types/relationship/)
   from the plugin ACF. When I use the wildcard %post_my_field it returns an array.
 * Is there a way your plugin could support ACF or execute PHP?
 * [http://wordpress.org/extend/plugins/category-posts-in-custom-menu/](http://wordpress.org/extend/plugins/category-posts-in-custom-menu/)

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

 *  Plugin Author [Diana van de Laarschot](https://wordpress.org/support/users/anaid/)
 * (@anaid)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/using-acf-fields-on-the-menu/#post-3574245)
 * Hi Jos,
 * thanks for your suggestion. I haven’t looked into it yet but: I will not tightly
   couple my plugin with another or execute PHP from another source.
 * What I can do is add support for arrays and flatten them to a comma-separated
   list of their values. I can’t do anything right now, I’ve got a deadline in two
   weeks, but after that I’ll install ACF and see what I can do.
 * Thank you for posting.
 * Kind regards,
    Diana
 *  Plugin Author [Diana van de Laarschot](https://wordpress.org/support/users/anaid/)
 * (@anaid)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/using-acf-fields-on-the-menu/#post-3574331)
 * I’ve started working on this, sorry for the delay.
 *  Plugin Author [Diana van de Laarschot](https://wordpress.org/support/users/anaid/)
 * (@anaid)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/using-acf-fields-on-the-menu/#post-3574332)
 * Hi Jos,
 * getting back to you on this one: What is it you want to display? The array that
   is returned by ACF contains nothing but post IDs [1,2,3].
 * What kind of information is it you want to display?
 * I’m thinking about nesting the structure. If posts 1, 2, 3 have titles “Title1”,“
   Title2”, “Title3”, %post_my_field(“(“, %post_title, “)”) would result in the 
   display of “(Title1, Title2, Title3)”. You’d be able to use all properties for
   the nested posts, etcetera.
 * Kind regards,
    Diana
 *  Thread Starter [Jos Velasco](https://wordpress.org/support/users/josvelasco/)
 * (@josvelasco)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/using-acf-fields-on-the-menu/#post-3574333)
 * Diana:
 * Post titles,that is exactly what I need.
 * Greetings
 *  Plugin Author [Diana van de Laarschot](https://wordpress.org/support/users/anaid/)
 * (@anaid)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/using-acf-fields-on-the-menu/#post-3574337)
 * Hi Jos,
 * I’ve made a change which you can try out in the Development version, which you
   should be able to grab from
 * [http://plugins.svn.wordpress.org/category-posts-in-custom-menu/trunk/](http://plugins.svn.wordpress.org/category-posts-in-custom-menu/trunk/)
 * You will be able to use
 * %post_my_field(%post_title) if my_field returns an array of post IDs.
    This returns“
   Title1, Title2” if my_field returns the ids for two posts with these titles.
 * Furthermore, you can add brackets around it like so:
 * (<yourbracketinghere>%post_my_field(%post_title)<yourbracketinghere>)
 * which will yield
    “<yourbracketinghere>Title1, Title2<yourbracketinghere>” if
   there are posts.
 * Important: You cannot use spaces in <yourbracketinghere>!
 * This extension is asking a lot from the plugin, and to be honest I think it makes
   it less elegant and more prone to errors, so I’m not sure about including this
   in the stable version.
 * I’d like to ask you to grab the Development version and test this, let me know
   if this solves your question and whether you encounter any problems.
 * Kind regards,
    Diana
 *  Plugin Author [Diana van de Laarschot](https://wordpress.org/support/users/anaid/)
 * (@anaid)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/using-acf-fields-on-the-menu/#post-3574358)
 * No further response received.
    ACF field integration will not be supported in
   future versions of the plugin. Closing topic.

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

The topic ‘Using ACF fields on the menu’ is closed to new replies.

 * ![](https://ps.w.org/category-posts-in-custom-menu/assets/icon-128x128.png?rev
   =2539336)
 * [Category Posts in Custom Menu](https://wordpress.org/plugins/category-posts-in-custom-menu/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/category-posts-in-custom-menu/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/category-posts-in-custom-menu/)
 * [Active Topics](https://wordpress.org/support/plugin/category-posts-in-custom-menu/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/category-posts-in-custom-menu/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/category-posts-in-custom-menu/reviews/)

 * 6 replies
 * 2 participants
 * Last reply from: [Diana van de Laarschot](https://wordpress.org/support/users/anaid/)
 * Last activity: [12 years, 4 months ago](https://wordpress.org/support/topic/using-acf-fields-on-the-menu/#post-3574358)
 * Status: resolved