'something', 'bar' => 'something else', ), $atts ); global $wp; $url = get_permalink(); $text = urlencode(get_the_title()); $icons_uri = get_template_directory_uri().'/assets/images/socialicons'; $img_to_pin = has_post_thumbnail() ? wp_get_attachment_url( get_post_thumbnail_id() ) : ""; $html = '
'; return $html; } add_shortcode( 'os_social_buttons', 'shortcode_os_social_buttons_func' ); // Featured Posts Slider shortcode function shortcode_os_featured_slider($atts){ $a = shortcode_atts( array( 'foo' => 'something', 'bar' => 'something else', ), $atts ); $featured_posts = osetin_get_field('featured_posts_slider', false, false); $html = ''; return $html; } add_shortcode( 'os_featured_slider', 'shortcode_os_featured_slider' ); // Featured Posts Carousel shortcode function shortcode_os_featured_carousel($atts){ $a = shortcode_atts( array( 'foo' => 'something', 'bar' => 'something else', ), $atts ); $featured_posts = osetin_get_field('featured_posts_slider', false, false); $html = '