Connections Business Directory
[resolved] Adding new items to types (2 posts)

  1. mashupciti
    Posted 3 years ago #


    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"?


  2. shazahm1
    Plugin Author

    Posted 3 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Connections Business Directory
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.