Listings in WP nav-menus
This topic contains 33 replies, has 4 voices, and was last updated by Stiofan O’Connor 10 years, 1 month ago.
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket-
AuthorPosts
-
September 12, 2014 at 11:14 pm #15231
Not sure for the moment, I left a note for him, but it is very early morning for him now. I’ll let you know.
September 12, 2014 at 11:22 pm #15232Thank you Guust for your help and understanding. 🙂
September 14, 2014 at 1:26 am #15289Still too early?
September 14, 2014 at 5:12 am #15300Well 4 day and no answer is a kind of sign of paid support…
September 14, 2014 at 8:03 am #15312Hi Joe,
Sorry about the late reply, i was traveling to a wedding and then was at the wedding the next day (hence i am working Sunday now).
For your original question, i am not sure if you can disable it just int he menu bit and not affect other areas too, i will go research it now and if it’s possible we will add it in the next release.
Thanks,
Stiofan
September 14, 2014 at 8:32 am #15314ok this can be done with the “show_in_nav_menus” argument, i have added this as a task and it will be done in our next release.
(not sure how code savy you are but if you want a quick hack you might want to look at addng something like this to the file custom_taxonomy_hooks_actions.php around line 35 in core.
if($taxonomy== 'gd_placecategory' || $taxonomy== 'gd_anothercategory'){$args['args']['show_in_nav_menus']=1;} else{$args['args']['show_in_nav_menus']=0;}
Thanks,
Stiofan
September 14, 2014 at 12:36 pm #15350Thank you Stiofan. This code working just fine and removed all custom taxonomies from nav_menus.
I don’t know if you noticed that I see empty field in GD design/navigation “Show geodirectory navigation in selected menu locations” and no any menu appears there.
Any other plugins I used were working fine with nav_menus.September 16, 2014 at 6:04 pm #15603Is that due to that code change?
Stiofan
September 16, 2014 at 9:29 pm #15628Stiofan, that is because the problem is the theme is an old theme, and doesn’t have any menu location registered.
I pointed that out above, and also was explained at https://wpgeodirectory.com/support/topic/empty-navigation/#post-15491September 17, 2014 at 10:58 am #15656Ah ok. I would sugest changing theme or updating the theme to use the new wordpress menu system or you could try this:
#1 add this code to your child theme functions.php this will enable shortcodes to work in text widgets.
add_filter( 'widget_text', 'shortcode_unautop'); add_filter( 'widget_text', 'do_shortcode');
#2 add a text widget to all your pages, maybe in the top sidebar and add this shortcode to get the location switcher.
[geodir_location_tab_switcher]
Other than that you would have to add other links manually to your menu.
Stiofan
September 17, 2014 at 12:23 pm #15684Stiofan it wasn’t hard to add “new menu system”, I added only few lines of code in functions.php and header, it solved the part of problem and “primary menu” button appear in navigation tab, but it didn’t solve the problem itself.
I intentionally don’t use hardcoded menu areas in my theme because I prefer to build layout in my way – mostly by sidebars.
In GD I couldn’t find the way how to modify menus as I want. I would prefer to add other links manually but I can’t find how.
I need to build my own menu with navigation that will show what I need and use plugins or js/css for menu layout. Is there a problem with customization of menu?In your demo link to /all-locations/ showing locations list. I only see box for changing locations. I don’t need a box and I do need a page with locations. How I can do it?
In your demo I see “Add listings” in menu but I see no way I can add it to my own menu. How I can add “dashboard” link to menu?
Any suggestions?
BTW – I don’t use child theme, I don’t use any other WP themes if I need I can add anything to my theme but only if it necessary for certain action.September 17, 2014 at 12:37 pm #15687Hi Joe,
The location switcher should be on the page somewhere for it to work properly, you can add it to a text widget as described above and you can also add this shortcode to a page to list locations in a different way
[geodir_location_switcher]
for the other links if you want to add them manually you can use the “links” button to add any link manually.
Stiofan
September 17, 2014 at 1:09 pm #15691Thank you Stiofan, shortcode in page works just fine, exactly what I was looking for.
Do you have shortcodes for dashboard and listings add/edit/etc.?Do you have somewhere in documentation list of available shortcodes?
It could be very handy in customization.
Where all documentation located? Soon after initial development I need to translate site to another language and finding titles inside templates could be very tricky. 🙂September 17, 2014 at 1:36 pm #15699Region field is default. How I can add locations without region? Many small european, asian, and South America countries doesn’t have regions, only towns.
Got it. Going by the map…
September 17, 2014 at 1:59 pm #15702Hi Joe,
Please add the loginbox widget, once logged in this will show add listing links if selected, also you can just link direct to them site.com/add-listing/?listing_type=gd_placeThose are the only shortcodes just now, we will soon be working on more.
Our documentation is being built here but is not fully ready yet http://docs.wpgeodirectory.com/Thanks,
Stiofan
-
AuthorPosts
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket