convert it into short code & explan how? [closed]

A function can be created that generates the output, then that function can be tied to a shortcode using the Shortcode API:

/**
 * Returns --> Contact  |  Terms of Service  |  Privacy Policy  |  Careers
 *
 * @parm array $atts 
 * @return string 
 */
function wpse241695_arrow_contact_terms_of_service_privacy_policy_careers( $atts ) {
    return '--> Contact  |  Terms of Service  | ' .
           ' Privacy Policy  |  Careers';
}

// Wire up a handy shortcode to output the string.
// Usage: [arrow_contact_terms_of_service_privacy_policy_careers]
add_shortcode( 'arrow_contact_terms_of_service_privacy_policy_careers', 
'wpse241695_arrow_contact_terms_of_service_privacy_policy_careers' );

Leave a Comment