Diana van de Laarschot
Forum Replies Created
-
Forum: Plugins
In reply to: [Category Posts in Custom Menu] Display only when post(s) assignedHi Joe,
thank you for replying as well. I’ll start thinking about an elegant way to offer this functionality.
Kind regards,
DianaForum: Reviews
In reply to: [Category Posts in Custom Menu] GeniousGreat to hear such enthusiasm, thank you too 🙂
Forum: Reviews
In reply to: [Category Posts in Custom Menu] Beauty!Thank you for taking the time to rate and review my plugin 🙂
Forum: Reviews
In reply to: [Category Posts in Custom Menu] perfectA very belated “you’re welcome”. I’m glad to hear you found it useful.
Forum: Reviews
In reply to: [Category Posts in Custom Menu] Works well. Exactly what I was looking for.It’s been a while, but I just wanted to say thank you for reviewing my plugin.
Forum: Plugins
In reply to: [Category Posts in Custom Menu] Display only when post(s) assignedHi Nick,
thanks for your message. I’m glad to hear you find my plugin useful 🙂
I understand that you’ve made the following menu structure:
- Category link
- Category posts, by my plugin
And if there are no posts, you want the category link to disappear?
You’re right, at the moment my plugin doesn’t do that, it’s lean and mean 😉 I could extend it so that this is generated automatically, i.e. that it creates the top level “Category link” for you automatically if you check an additional checkbox?
Let me know if this is what you want.
Kind regards,
DianaForum: Plugins
In reply to: [Category Posts in Custom Menu] Invalid argument errorGreat! 🙂 Thanks for reporting it!
Forum: Plugins
In reply to: [Category Posts in Custom Menu] Invalid argument errorHey,
if I’m not mistaken, I’ve fixed this in version 0.7.2
Please let me know if your problem is resolved.
Kind regards,
DianaForum: Plugins
In reply to: [Category Posts in Custom Menu] Using ACF fields on the menuHi 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/
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,
DianaForum: Plugins
In reply to: [Category Posts in Custom Menu] Invalid argument errorI’ve found the reason for this error. At the moment, I’m also doing some other changes, so with version 0.7.2 this will be fixed. Please bear with me.
Forum: Plugins
In reply to: [Category Posts in Custom Menu] Using ACF fields on the menuHi 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,
DianaForum: Plugins
In reply to: [Category Posts in Custom Menu] Using ACF fields on the menuI’ve started working on this, sorry for the delay.
Forum: Plugins
In reply to: [Category Posts in Custom Menu] Invalid argument errorHi,
thanks for your message. I’m sorry to hear the plugin isn’t working for you.
As you can see on blog.dianakoenraadt.nl, I’ve got the plugin running as well. So far I have discovered no problems. Can you please do the following:
– Let me know which version of WordPress you are using.
– Let me know which themes and which plugins you are using, both when developing and online. Is there a difference?
– Disable the theme and other plugins and tell me what effect this has.
– Please let me know exactly how you’ve configured your custom menu.On line 168 of the plugin, the custom keys of the post are retrieved and the %post_my_field occurrences are replaced. I think you are using a plugin that also creates custom keys. Please let me know, I’ll work on it.
Kind regards,
DianaForum: Plugins
In reply to: [Category Posts in Custom Menu] Using ACF fields on the menuHi 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,
DianaForum: Plugins
In reply to: [Category Posts in Custom Menu] White space between the categoriesHi Ruud,
I’ve seen the question at the Dutch forum and I believe the second item in my response above solves this question. I will rephrase my answer on the Dutch forum and will close this topic here.
Kind regards,
Diana