Support » Plugin: Connections Business Directory » Adding new items to types

  • Resolved mashupciti



    I’d like to be able to add a few more options such as;
    – Add a new type (with an icon) to the social network drop down options.
    – Add a new links type
    – Add a new address type

    Also is it possible to add customized fields now? Or can I change some of the core fields like “organization” to “label”?

Viewing 1 replies (of 1 total)
  • Plugin Author shazahm1


    You can add the new types by adding them to the arrays in the class.options.php file. I haven’t tested adding new link and address types to see what the effect will be, but it should work fine. After you add the new social media links type, make sure you but the various sized icons for the new type in the correct folders in the images folder. That’ll make sense when you look at the folder structure.

    No, custom field are not yet supported. You can change the field names quite easily. I suggest using the gettext filter. Here’s an example:

    function  my_custom_labels  ( $translated_text , $text , $domain )  {
        if ( $domain == 'connections' && $translated_text == 'Department' ) {
            $translated_text = 'Label';
        return $translated_text;
    add_filter( 'gettext', ' my_custom_labels', 20, 3 );

    Simply just add an additional if statement for each that you want to customize.

    Hope that helps.

Viewing 1 replies (of 1 total)
  • The topic ‘Adding new items to types’ is closed to new replies.