Diana van de Laarschot
Forum Replies Created
-
Forum: Plugins
In reply to: [Category Posts in Custom Menu] Display postsHi gogomx,
You’re posting a new thread for a question I already answered here: https://wordpress.org/support/topic/submenu-is-not-hidden?replies=2
This has *nothing* to do with my plugin.
Find yourself a good Front-End developer who can do this for you.Kind regards,
DianaForum: Plugins
In reply to: [Category Posts in Custom Menu] WooCommerce hidden products visible in menuHi Henri,
it is possible to write an extension plugin for Category Posts in Custom Menu.
(See here: https://wordpress.org/support/topic/exclude-single-posts?replies=8 and an example implementation here http://plugins.svn.wordpress.org/category-posts-in-custom-menu/trunk/sample-cpcm-extension/sample-cpcm-extension.php)Extensions of CPCM may adapt the query that is used to retrieve the posts, this should be usable for what you want to do. Use the cpcm_filter_posts_query filter to hook into this.
Hope that helps.
Kind regards,
DianaForum: Plugins
In reply to: [Category Posts in Custom Menu] Ordering Keeps ShiftingHi dozingdog,
thank you for contacting the support forums. Your situation indeed sounds strange, I’ve never encountered it before and cannot reproduce it, neither with pages with custom taxonomies nor with custom post types and custom taxonomy.
I’ve tested this with the theme Twenty Thirteen. Could you please revert to this theme and disable other plugins to see if the problem still occurs?
Kind regards,
DianaForum: Plugins
In reply to: [Category Posts in Custom Menu] Doenst work with virtue theme ?Hi eolica,
As you can read in the FAQ, under “Can’t see it working in any way”, this problem may occur if the theme manipulates the menu with a higher priority than my plugin and does not use the wp_nav_menu_item_custom_fields hook.
In order to work together, all plugin authors and theme authors should add this hook to make our plugins (that edit the menu content) work together. (There is no such hook in WordPress Core yet.) Ask the Virtual theme authors to do so and they will become compatible with all plugins that use this workaround. See, for example, http://seventhqueen.com/support/forums/reply/21510 or Workaround #1 here https://wordpress.org/plugins/nav-menu-roles/faq/
Kind regards,
DianaForum: Plugins
In reply to: [Category Posts in Custom Menu] Submenu is not "hidden"Hi gogomx,
erm.. this isn’t really related to my plugin: it’s something that needs to be done as part of the theme, using Javascript or CSS.
Kind regards,
DianaForum: Plugins
In reply to: [Category Posts in Custom Menu] Getting Main Links to active classHi baekerIT,
thank you for contacting the WordPress forums. This is a bug in WordPress that I have reported here: https://core.trac.wordpress.org/ticket/32918
The CSS class ‘current-post-ancestor’ is not applied correctly to all items. This is not something I am able to fix in the plugin, it has to be fixed in WordPress.
I’m sorry for the inconvenience.
Kind regards,
DianaForum: Plugins
In reply to: [Category Posts in Custom Menu] Performance problem – many database queriesHi betagoo,
the use of transients was what I wanted to investigate. Thank you for sharing!
Unfortunately, there is no suitable point in time inside the plugin where I can perform this caching and retrieving (other plugins might edit the menu as well) so this is indeed the best and only option: To cache the entire menu using transients.
I’ll add it to the plugin FAQ.
Kind regards,
DianaForum: Plugins
In reply to: [Category Posts in Custom Menu] Performance problem – many database queriesHi betagoo,
I indeed read something about Transients. Did you change any code in the plugin to use Transients? (I have never worked with Transients before, tips are welcome 🙂 )
Kind regards,
DianaForum: Plugins
In reply to: [Category Posts in Custom Menu] Stopped workingHi Mike,
thanks for contacting me on the forums.
I’m afraid I’m not sure what you’re reporting: From the screenshot it seems that the checkbox that should be checked is not checked, which would indeed give the behavior you’re describing.
Are you saying that the checkbox won’t stay checked?
Kind regards,
DianaForum: Plugins
In reply to: [Category Posts in Custom Menu] Performance problem – many database queriesI just read up on a few techniques to speed things up, I will look into it for the next version of the plugin. Again, thank you for reporting.
Kind regards,
DianaForum: Plugins
In reply to: [Category Posts in Custom Menu] Performance problem – many database queriesHi betagoo,
thank you for reporting this. As it stands, I have never taken performance into consideration in the plugin; although the plugin enables you to fill a menu up with nothing but categories and posts, it has not been tested with such huge scenarios.
The plugin will perform one get_posts call per taxonomy that is ‘unfolded’. I will look into it later, to see if I can reduce the number of queries by building one single superquery. For now, there isn’t much I can do for you.
Question: Those 1200 queries, in what timeframe and how many page requests does this involve? Do you have any idea?
Kind regards,
DianaForum: Plugins
In reply to: [Category Posts in Custom Menu] Undefined Index?Great! Thank you for trying it out so quickly 🙂
I’ll bring out version 1.2.1 soon, containing this fix.Kind regards,
DianaForum: Plugins
In reply to: [Category Posts in Custom Menu] Undefined Index?I think I’ve fixed it.
Is someone willing to try out the development version? It can be found on the Developers tab page under ‘Other Versions’
Kind regards,
DianaForum: Plugins
In reply to: [Category Posts in Custom Menu] Undefined Index?tyrann0us,
brilliant, I reproduced it thanks to your description. I’m on it 🙂
Kind regards,
DianaForum: Plugins
In reply to: [Category Posts in Custom Menu] Undefined Index?Hi tyrann0us,
thank you for getting back to me on this. I can’t explain yet why this happens.
What I can tell you is that it pertains to the ‘count’ and ‘skip’ parameters of a specific menu item. To be exact, menu item 2935 somehow does not receive a ‘count’ or ‘skip’ parameter when you save the menu.
Are you by any chance able to identify which menu item is 2935 and what the count and skip parameters are? (Identifying this ID is not always possible, but if you are comfortable with inspecting HTML/CSS, if the menu item is still present in the menu it should have <li id=”menu-item-2935″ in HTML.) Another way would be to inspect the ‘count’ and ‘skip’ parameters manually in Appearances > Menus. These should not be letters or special symbols, only digits are allowed.
Anyway, I will look into it again next weekend. Now that I know it should be seen in the backend when saving the menu, I hope I can reproduce this.
My apologies for this issue and my slow responses and thank you for getting back to me on this!
Kind regards,
Diana