Lucas Wynne linked some good plugins for such functionalities (I have used Addthis multiple times), however if you’re looking for a plugin-free solution, i’d more likely filter the content in my functions.php file instead of using a shortcode :
some pseudo-code
function add_content( $content ){
$content .= "<a href=\"facebook\">FACEBOOK</a>";
return $content;
}
For more info on the content filter : http://codex.wordpress.org/Plugin_API/Filter_Reference/the_content
Related Posts:
- Add Content to Page without shortcodes
- How to make post templates to include shortcodes only?
- Navigation links to posts in current term shortcode
- Using advanced custom fields from one custom post type in another custom post type / using nested shortcodes
- How to render a custom post type template with custom fields using shortcode
- Form action/link to render a plugin in WordPress front-end
- Content vs Template on custom post
- custom post type category count shortcode
- Display Child Pages of Custom Post Type Parent Page
- How to use custom template files in deeper directory?
- WordPress Doesn’t Generate Taxonomy Archive
- Shortcode to display Staff post type based on Location post type and Specialty post type
- A case for Hierarchical Custom Posts
- Custom taxonomy returns 404
- wp_reset_postdata() and wp_reset_query() inside shortcode are not working to reset original page query
- Shortcode for CPT post content in a page
- Filter widget outputs
- Adding Page Templates to post but it ignored it
- Next Post links not working in custom post type shortcode
- Template for all categories of a custom post type?
- Foreach inside shortcode not working as planned
- Migrating a taxonomy’s tags to the native category
- Flush Rewrite Rules when new site is created on network
- WordPress custom taxonomy template not working
- How can I get this request to use the Custom Post Type page template instead?
- How to specify a template for a path like http://example.com/something?
- Custom templates for a specific category
- Archive for a Taxonomy of a Custom Post type
- Can a shortcode included in post content add styles to the ?
- How to retrieve category of a post in have_post loop?
- Custom post type pages return 404 page?
- WordPress 3.9 not using custom template
- Template files for Custom Post Type and Taxonomy
- Set templates for custom post types
- How to Create Template File for Parent Page of Custom Post Type
- Custom post_type search pages
- Checking if looped item has a parent inside a shortcode
- how to remove pages loading with the archive templates
- Main query not querying any posts in custom taxonomy template
- Custom Empty Results page for my Custom Post Type
- get_post_meta is not working inside shortcode
- Custom posts template page
- the_post() is printing titles in page footer
- Loop through custom posts by taxonomy and display the titles in a list, it is repeating 8 times
- How can I use archive-{post_type}.php theme template?
- make permalink go to a custom single.php file
- Add Previous/Next Buttons to CPT Single Pages Only
- Creating Sections for Post Types
- Add custom attributes to a post
- Custom post types with categories in template
- Creating separate feeds for custom post types
- Shortcode leaves no space for other elements?
- Which file/template is in charge of taxonomies for custom post types?
- How can I add a shortcode to query Custom Post Type with ACF in WordPress?
- How can I trace inconsistency in loading a template?
- Custom shortcode works in Elementor editor but not on frontend
- Get Posts by Category, Tag , and CPT Taxonomy
- post_type internal ID?
- Custom post type Shortcodes wordpress
- How to get_term_meta on single custom post?
- how to create custom post type with dynamic category_name using shortcode
- Add shortcode inside of the_content()
- WordPress Custom Post Type and Shortcode for Portfolio Items
- Assigning alternate single-{cpt} template based on blog_id in multisite
- How do I find a way to create a global single.php for a custom post type?
- How do I assign a block template (.html) to a custom post type?
- Templates for hierarchical custom post type
- Run shortcode in custom script in wp_head if post type is CPT ‘Jobs’
- How to use single.php for creating, reading and editing Custom Posts with ACF
- Creating shortcode id for custom post types
- Shortcode is displaying the content on top of the page [duplicate]
- Filter content in shortcode
- Custom Post Type setup
- Apply template by path/slug related to custom post type?
- assign different templates to custom post type with homepage loop
- How to get the current category with custom posts
- Custom post type is using the index.php template
- Assign a template to a custom post type when displayed by the main loop on the home page
- Shortcode with WP_Query more than once on one page
- posts within custom post type all share the same content in the front-end
- Shortcode to return single custom post based on post taxonomy
- Change post type depending on shortcode
- Custom Post Type for Shortcode Use – Prevent it display as a post (with slug)
- Get template part with CPT and Custom Taxonomy conditionals
- Template code to split a post and print a custom field?
- Displaying a list of Contacts
- How to create a template to show child terms of a MAIN taxonomy
- How to call a post’s metadata in shortcode.php?
- How to change single custom post template by custom taxonomy?
- Custom Post Type homepage template
- Looking to Customize YouTube Video Embeds
- Custom permalink structure for remote content pages
- Trying to write shortcode with get_post_meta but isn’t working
- Setting a homepage – doesn’t seem to work
- Shortcode / WP_Query in post changes context
- How to display class name in this shortcode post query
- How to create a archive template for custom post type [duplicate]
- Custom Post Type or Shortcode, What to choose? [closed]
- Modify a plugin function output from another plugin
- WP not recognizing custom post type / template