• Resolved CypressWebs

    (@jmeyer2485)


    Is there a way you can add the options in the next update to edit the following:

    Address Type: Have option to have just ‘Address’ along with the Home, Work, School, Other, options.

    Phone Type: Also just have the option of just ‘Phone’ along with the all the specific phone options.

    So it would look something like this:

    Address
    555 Test Road City, MN 55555

    Phone: 555-555-5555

    Website: Test Website

    Just makes it easier so I not have to edit the PHP every time there is a update and also gives a generic option for adding local business etc.

    Also is there a way you can add a comma after the city so the with and state looks more official like this:

    555 Test Road City, MN 55555

    Not like this:

    555 Test Road City MN 55555

    Thanks

    https://wordpress.org/plugins/connections/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Steven

    (@shazahm1hotmailcom)

    @ Northwoods Creative

    You can add a couple filters to add these types so they are update safe. Here’s how…

    Install the Code Snippets plugin.

    Add a new snippet with the following code:

    function cn_add_address_types( $options ) {
    
    	$options['address'] = 'Address';
    
    	return $options;
    }
    
    add_filter( 'cn_address_options', 'cn_add_address_types' );
    
    function cn_add_phone_types( $options ) {
    
    	$options['phone'] = 'Phone';
    
    	return $options;
    }
    
    add_filter( 'cn_phone_options', 'cn_add_phone_types' );

    Save and activate the new snippet.

    Hope that helps!

    Thread Starter CypressWebs

    (@jmeyer2485)

    Worked great thank you!

    Plugin Author Steven

    (@shazahm1hotmailcom)

    @ Northwoods Creative

    Good to hear!

    If you have a moment, I would truly appreciate a review as they really do make a difference. Many thank in advance!

    https://wordpress.org/support/view/plugin-reviews/connections

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Edit Phone and Titles’ is closed to new replies.