function Shortcode_anchor($atts) { extract(shortcode_atts(array('post_id' => null), $atts)); if (empty($post_id)) { global $post; } else { $post = get_post($post_id); } if (isset($post)) { return WPAL2Int::Get_fb_anchor($post); } else { return ''; } }
function al2fb_anchor($post_ID = null) { if (empty($post_ID)) { global $post; } else { $post = get_post($post_ID); } if (isset($post)) { echo WPAL2Int::Get_fb_anchor($post); } }