• Resolved bigoldal

    (@bigoldal)


    Hi,

    I really like your plugin and would like to use it on my website.

    The trouble is that I am using GD – GeoDirectory and their GD Framework and Child Theme. I am also using a GD BP integrator. The BP menu item ‘Listings’ has been used by GD for custom CPT’s so this causes a clash with WPA and BP addon.

    Is it possible you could change your BP integrator to create a ‘WPA tab rather than ‘Listings tab?’ This would avoid this conflict. I tried AWPCP and had the same problem.

    I am using WP Job Manager plugin but don’t have the same issue because their BP Integrator creates a separate ‘Job Manager’ tab.

    Thanks & Regards

Viewing 1 replies (of 1 total)
  • Plugin Author Greg Winiarski

    (@gwin)

    Hi, you can add the code below to your theme functions.php file it will rename the Listings tab

    
    add_filter("adext_bp_core_nav_item", "my_adext_bp_core_nav_item");
    add_filter("adext_bp_core_subnav_item_browse", "my_adext_bp_core_subnav_item_browse");
    add_filter("adext_bp_core_subnav_item_manage", "my_adext_bp_core_subnav_item_manage");
    
    function my_adext_bp_core_nav_item( $args ) {
        $args["slug"] = "wpadverts";
    }
    
    function my_adext_bp_core_subnav_item_browse( $args ) {
        $args['parent_url'] = trailingslashit( bp_displayed_user_domain() . 'wpadverts' ),
        $args["parent_slug"] = "wpadverts";
        return $args;
    }
    
    function my_adext_bp_core_subnav_item_manage( $args ) {
        $args['parent_url'] = trailingslashit( bp_displayed_user_domain() . 'wpadverts' ),
        $args["parent_slug"] = "wpadverts";
        return $args;
    }
    

    This should change the “Listings” tab slug from /listings to /wpadverts, after adding this code you might need going to wp-admin / Settings / Permalinks panel and click “Save Changes” button to reset WP router.

Viewing 1 replies (of 1 total)
  • The topic ‘BP ‘Listings’ clash with GeoDirectory’ is closed to new replies.