Diana van de Laarschot
Forum Replies Created
-
Forum: Plugins
In reply to: [Category Posts in Custom Menu] Exclude single postsHi betagoo,
thanks a lot for trying out and reporting back! Next release version will contain this functionality 🙂
Note that I’d like some more feedback on other new functionality before I release it, but it’s on its way!Kind regards,
DianaHi Johny,
I’ve implemented this in the latest Development Version of the plugin.
Would you be willing to do a test of the plugin to verify that the CSS behavior is correct?
Kind regards,
DianaForum: Plugins
In reply to: [Category Posts in Custom Menu] Throws some PHP errors but worksHi tyrann0us,
I’ve fixed this in the latest development version and will release a new version of the plugin soon.
Would you be willing to grab the latest development version and test drive it?
Kind regards,
DianaForum: Plugins
In reply to: [Category Posts in Custom Menu] Exclude single postsHi betagoo,
I’ve just finished implementing support for extensions. The latest Development Version of my plugin, which you can grab on the development page, now includes an additional action hook and filter, so that CPCM can be extended.
I have included a sample plugin that extends CPCM in exactly the way you want.
Would you be willing to grab the latest development version and give CPCM and the sample plugin a test run?
Kind regards,
DianaForum: Plugins
In reply to: [Category Posts in Custom Menu] Category Lastes Post With ImagesHi Emma,
thank you for reporting this, I’m sorry it isn’t working.
I’ve tested this by setting “%post_title, %post_featured_image” for one of my categories in my test environment and there it works.
Note that the “%post_my_field” wildcard does not work the way you used it. This wildcard exists only if you have set a custom field on your post. Example, creating a post and then adding a custom field “im_ema”, yields a wildcard %post_im_ema which you can then use
As for %post_featured_image, I’m gonna need your help to reproduce this in my environment.
Could you please tell me:
– Are you using WordPress posts, or are you using a custom post type?
– Could you check if the posts in the category indeed have a featured image?
– Can you reproduce this by creating 1. a new category 2. a new _normal_ post with a featured image and 3. adding this category to the menu with %post_featured_image?
– Which plugins are you using? Could you disable all plugins except mine to see if that fixes the problem?
– Which theme are you using? Could you go back to the default wordpress theme to see if that fixes the problem?I hope these questions can help us isolate the problem.
Kind regards,
DianaForum: Plugins
In reply to: [Category Posts in Custom Menu] Throws some PHP errors but worksHi tyrann0ous,
thank you very much for reporting this.
I had also noticed it and in the next plugin release this will be fixed.Kind regards,
DianaForum: Plugins
In reply to: [Category Posts in Custom Menu] Post custom fields with classesHi Narek,
You can use HTML in the Post Navigation Label if you want, so setting the label to “<div class=”my-custom-field”>%post_my_field</div>” should not be a problem at all.
Kind regards,
DianaForum: Plugins
In reply to: [Category Posts in Custom Menu] Exclude single postsHi betagoo,
I hope you’ll understand that I’m reluctant to fill my plugin with each and every option that everyone asks of me. Ask yourself: is this option useful for everyone? Right now, I must conclude no.
However, I’ve received a similar request via e-mail (i.e. adding of a custom option) and I would like to come up with an elegant way in which users can add their own custom fields to the plugin. I will look into this.
Kind regards,
DianaForum: Plugins
In reply to: [Category Posts in Custom Menu] Exclude single postsHi betagoo,
there is currently no parameter to exclude posts by ID from the menu.
Note that the plugin was not created with this in mind and, at this moment, you should do this by creating a new category and assigning the posts you want in the menu to this new category.As for fine-grained control, as soon as you start excluding one post at a time, it’s a small step from just manually adding the posts you want to the menu. This goes against what the plugin intends to do.
If, of course, a significant amount of users want this functionality, I’ll reconsider. So anyone who also wants this, feel free to speak up.
Kind regards,
DianaForum: Plugins
In reply to: [Category Posts in Custom Menu] Category Lastes Post With ImagesHi Emma,
with a bit of Javascript and some CSS, sure, that should be possible. However, my plug-in won’t do styling for you out of the box. It can help with setting up the structure though:
Add each category you want to show to the menu. Check ‘Create submenu…’ checkbox. Then, in the post navigation label, you can use %post_featured_image_url or %post_featured_image to add an <img> block. Surround this with various HTML elements to structure it the way you need.
I can’t help you with the actual styling, you should do that yourself or find a front-end developer who can do that for you.
Kind regards,
DianaForum: Reviews
In reply to: [Category Posts in Custom Menu] Does what it saysThank you very much for your review, I’m very glad to hear it!
Hi Johny,
thank you for posting. I’ve got some free time next week, I’ll look into it. Thank you for pointing out functionality I have missed
Kind regards,
DianaHi alec,
thank you for posting your question.
Based on your description you have a CategoryA, with SubCategoryB. Then, you have a Post in SubCategoryB. Am I right?
In that case, adding CategoryA to the menu, and *including* subcategories, will add all posts below CategoryA, so also posts from its subcategories.
If you want only posts in CategoryA, and no posts from subcategories, choose *exclude subcategories*.
Does this answer your question?
Kind regards,
DianaAh, and here I was testing against your plugin to see if my change worked. Anyway, tested it with nav menu roles now and it works 🙂 Closing this thread
I’ve just released version 1.0.1 that now uses the wp_nav_menu_item_custom_fields hook. CPCM should now be compatible with all other plugins that also use this hook.
Kind regards,
Diana