Hi Jos,
I’ve made a change which you can try out in the Development version, which you should be able to grab from
https://plugins.svn.www.ads-software.com/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