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

Tagged: ,

  • Author
    Posts
  • #15231

    Guust
    Moderator
    Post count: 29970

    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.

    #15232

    Joe Green
    Free User
    Post count: 43

    Thank you Guust for your help and understanding. 🙂

    #15289

    Joe Green
    Free User
    Post count: 43

    Still too early?

    #15300

    Joe Green
    Free User
    Post count: 43

    Well 4 day and no answer is a kind of sign of paid support…

    #15312

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Hi 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

    #15314

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    ok 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

    #15350

    Joe Green
    Free User
    Post count: 43

    Thank 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.

    #15603

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Is that due to that code change?

    Stiofan

    #15628

    Guust
    Moderator
    Post count: 29970

    Stiofan, 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-15491

    #15656

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Ah 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

    #15684

    Joe Green
    Free User
    Post count: 43

    Stiofan 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.

    #15687

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Hi 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

    #15691

    Joe Green
    Free User
    Post count: 43

    Thank 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. 🙂

    #15699

    Joe Green
    Free User
    Post count: 43

    Region 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…

    #15702

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Hi 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_place

    Those 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

Viewing 15 posts - 16 through 30 (of 34 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount