Only "Populate from post type" option
-
Hi!
im trying to configure my menu but the only option that appears is Populate from post type. I need the Populate from taxonomy because i´m using a woocommerce plugin and I need to use the product categories as submenu items.
Im using Shoppica theme an woocommerce ver 2.1.9
Thx!!
-
Hi,
When the plugin is activated in the admin area, and you are editing a menu item do you see a list of the following options after you have checked Automatically Populate Submenu:
- Populate from post type
- Populate from Taxonomy
- Populate from child pages
- Populate from date archives
A guide to populating the menu from taxonomy items can be found here: http://jamescollings.co.uk/docs/v1/jc-submenu/how-tos/how-to-automatically-populate-wordpress-submenus/
if you are able to edit the menu but your theme is not displaying the dynamic items, it may be due to your theme using a custom menu walker to output its menu. JC Submenu now has a beta feature to disable the plugins custom walker, to do this put the code into your themes function file:
<?php // disable jc submenu custom walker add_filter('jcs/enable_public_walker', 'jc_disable_public_walker'); function jc_disable_public_walker($default){ return false; } ?>Hi!
thanks for your fast reply.
the theme is showing the dynamic items, but only the populate post-type, not taxonomy neither the others…
i tried to add the code in functions.php but the result is the same…
Any other idea?
Thx!!
Is there a online preview i can look at? if not can you copy the generated html for your menu on pastebin or something like that so i can have a look and also let me know what sections are supposed to be populated dyamically
Hi!
paste the code of menu item box from admin view:
<div class="menu-item-settings" id="menu-item-settings-2384" style="display: block;"> <p class="field-url description description-wide"> <label for="edit-menu-item-url-2384"> URL<br> <input type="text" id="edit-menu-item-url-2384" class="widefat code edit-menu-item-url" name="menu-item-url[2384]" value="#"> </label> </p> <p class="description description-thin"> <label for="edit-menu-item-title-2384"> Etiqueta de navegación<br> <input type="text" id="edit-menu-item-title-2384" class="widefat edit-menu-item-title" name="menu-item-title[2384]" value="asdqwe"> </label> </p> <p class="description description-thin"> <label for="edit-menu-item-attr-title-2384"> Atributos del título<br> <input type="text" id="edit-menu-item-attr-title-2384" class="widefat edit-menu-item-attr-title" name="menu-item-attr-title[2384]" value=""> </label> </p> <p class="field-link-target description hidden-field"> <label for="edit-menu-item-target-2384"> <input type="checkbox" id="edit-menu-item-target-2384" value="_blank" name="menu-item-target[2384]"> Abrir enlace en una nueva ventana/pestaña </label> </p> <p class="field-css-classes description description-thin hidden-field"> <label for="edit-menu-item-classes-2384"> Clases CSS (opcional)<br> <input type="text" id="edit-menu-item-classes-2384" class="widefat code edit-menu-item-classes" name="menu-item-classes[2384]" value=""> </label> </p> <p class="field-xfn description description-thin hidden-field"> <label for="edit-menu-item-xfn-2384"> Relación con el enlace (XFN)<br> <input type="text" id="edit-menu-item-xfn-2384" class="widefat code edit-menu-item-xfn" name="menu-item-xfn[2384]" value=""> </label> </p> <p class="field-description description description-wide hidden-field"> <label for="edit-menu-item-description-2384"> Descripción<br> <textarea id="edit-menu-item-description-2384" class="widefat edit-menu-item-description" rows="3" cols="20" name="menu-item-description[2384]"></textarea> <span class="description">La descripción se mostrará en los menús si el tema actual lo soporta.</span> </label> </p> <p class="field-move hide-if-no-js description description-wide"> <label> <span>Mover</span> <a href="#" class="menus-move-up" style="display: none;">Uno hacia arriba</a> <a href="#" class="menus-move-down" style="display: none;">Uno hacia abajo</a> <a href="#" class="menus-move-left" style="display: none;"></a> <a href="#" class="menus-move-right" style="display: none;"></a> <a href="#" class="menus-move-top" style="display: none;">A la parte superior</a> </label> </p> <p class="jc-submenu-admin description description-wide"> <label for="edit-jc-submenu-admin-2384"> <input type="checkbox" id="edit-jc-submenu-admin-2384" value="1" class="jc-submenu-admin" name="jc-submenu-admin[2384]"> Visible to Logged In Users Only </label> </p> <p class="jc-submenu-autopop description description-wide"> <label for="edit-jc-submenu-autopop-2384"> <input type="checkbox" id="edit-jc-submenu-autopop-2384" value="1" class="jc-submenu-autopopulate" name="jc-submenu-autopop[2384]"> <strong>JC Submenu</strong> - Automatically populate submenu </label> </p> <p class="jc-submenu-childpop description description-wide hidden jc-submenu-active" style="display: block;"> <label for="edit-jc-submenu-childpop-2384"> <input type="checkbox" id="edit-jc-submenu-childpop-2384" value="1" class="jc-submenu-childpop" name="jc-submenu-childpop[2384]"> Replace Current item with Populated Items </label> </p> <input type="hidden" name="jc-submenu-active[2384]" value="1"> <div id="jc-submenu-populate-block-2384" class="jc-submenu-populate-block description-wide hidden" style="display: block;"> <p id="accord-heading-post-2384" class="jc-submenu-populate-post jc-accord-heading"> <input type="radio" id="show-jc-submenu-populate-post-2384" class="jc-submenu-populate-type" value="post" name="jc-submenu-populate-type[2384]"> <label for="show-jc-submenu-populate-post-2384">Populate from post type</label> </p> <!-- Post Population Options --> <div class="item-edit-panel show-post hidden"> <div class="jc-submenu-row jc_two_cols"> <p class="jc-submenu-populate-post"> <label>Post Type</label> <select id="edit-jc-submenu-populate-post-2384" name="jc-submenu-populate-post[2384]"> <option value="post" data-taxs="category post_tag post_format">post</option> <option value="page" data-taxs="">page</option> <option value="attachment" data-taxs="">attachment</option> <option value="product" data-taxs="product_type product_cat product_tag product_shipping_class pa_color pa_numero">product</option> <option value="portfolio" data-taxs="portfolio_taxonomy">portfolio</option> <option value="testimonial" data-taxs="">testimonial</option> </select> </p> </div> <div class="jc-submenu-row jc_two_cols"> <p class="jc-submenu-post-tax "> <label>Taxonomy</label> <select id="edit-jc-submenu-post-tax-2384" name="jc-submenu-post-tax[2384]"><option value="0" selected="selected">All</option><option value="category">category</option><option value="post_tag">post_tag</option><option value="post_format">post_format</option></select> </p> <p class="jc-submenu-post-term "> <label>Terms</label> <select id="edit-jc-submenu-post-term-2384" name="jc-submenu-post-term[2384]"></select></p></div></div></div><div class="menu-item-actions description-wide submitbox"> <a class="item-delete submitdelete deletion" id="delete-2384" href="http://www.zapatosaragon.com/wp-admin/nav-menus.php?action=delete-menu-item&menu-item=2384&_wpnonce=0d8332b51b">Eliminar</a> <span class="meta-sep hide-if-no-js"> | </span> <a class="item-cancel submitcancel hide-if-no-js" id="cancel-2384" href="http://www.zapatosaragon.com/wp-admin/nav-menus.php?edit-menu-item=2384&cancel=1408007123#menu-item-settings-2384">Cancelar</a> </div> <input class="menu-item-data-db-id" type="hidden" name="menu-item-db-id[2384]" value="2384"> <input class="menu-item-data-object-id" type="hidden" name="menu-item-object-id[2384]" value="2384"> <input class="menu-item-data-object" type="hidden" name="menu-item-object[2384]" value="custom"> <input class="menu-item-data-parent-id" type="hidden" name="menu-item-parent-id[2384]" value="0"> <input class="menu-item-data-position" type="hidden" name="menu-item-position[2384]" value="1"> <input class="menu-item-data-type" type="hidden" name="menu-item-type[2384]" value="custom"> </div>Is that everything? definitely something wrong, are any errors or warnings displayed? (do you have error reporting on? and debug set to true in your wp-config file).
Can you goto “Settings > JC Submenu” and select “Enable Admin Walker” to see if this changes what is displayed.
If activate Admin Walker, the console paint this:
POST http://www.xxxxxxxxxx.com/wp-admin/admin-ajax.php net::ERR_INCOMPLETE_CHUNKED_ENCODING load-scripts.php?c=0&load%5B%5D=jquery-core,jquery-migrate,jquery-ui-core,jquery-ui-widget,utils,jq…:4 send load-scripts.php?c=0&load%5B%5D=jquery-core,jquery-migrate,jquery-ui-core,jquery-ui-widget,utils,jq…:4 n.extend.ajax load-scripts.php?c=0&load%5B%5D=jquery-core,jquery-migrate,jquery-ui-core,jquery-ui-widget,utils,jq…:4 n.(anonymous function) load-scripts.php?c=0&load%5B%5D=jquery-core,jquery-migrate,jquery-ui-core,jquery-ui-widget,utils,jq…:4 wpNavMenu.addItemToMenu load-scripts.php?c=0&load%5B%5D=jquery-core,jquery-migrate,jquery-ui-core,jquery-ui-widget,utils,jq…:40 wpNavMenu.addLinkToMenu load-scripts.php?c=0&load%5B%5D=jquery-core,jquery-migrate,jquery-ui-core,jquery-ui-widget,utils,jq…:40 wpNavMenu.addCustomLink load-scripts.php?c=0&load%5B%5D=jquery-core,jquery-migrate,jquery-ui-core,jquery-ui-widget,utils,jq…:40 (anonymous function) load-scripts.php?c=0&load%5B%5D=jquery-core,jquery-migrate,jquery-ui-core,jquery-ui-widget,utils,jq…:40 n.event.dispatch load-scripts.php?c=0&load%5B%5D=jquery-core,jquery-migrate,jquery-ui-core,jquery-ui-widget,utils,jq…:3 r.handle load-scripts.php?c=0&load%5B%5D=jquery-core,jquery-migrate,jquery-ui-core,jquery-ui-widget,utils,jq…:3and the option in menu doesnt is painted
Hi!
if I change the order of items of populate from xxxx, for example, into the code of edit.php (/views/) i´ve putted the first block populate from taxonomy and the second populate from post type, the system paints the two first select´s: Taxonomies and Temrs, but the rest of the selects are not painted… the system doesnt paint any server error at all…
any idea?
Can you try downloading an older version of the plugin: http://downloads.wp.xz.cn/plugin/jc-submenu.0.7.2.zip and see if you have any luck with that.
Sounds like something is conflicting with another plugin or theme, since it is a premium theme i cant check it out.
Can you send me a list of the plugins you are using?
Plugins:
Advanced Access Manager
Asesor de Cookies
Capability Manager
UpdraftPlus – Backup/Restore
WooCommerce
WooCommerce Pay for Payment
YITH WooCommerce Ajax Navigation
The topic ‘Only "Populate from post type" option’ is closed to new replies.