Here is a quick shortcode for you. You’ll still have to style it the way you want it.
Just use:[social-share] to share.
// social sharing shortcode, use [social-share]
add_shortcode( 'social-share', 'render_social_share' );
function render_social_share( $atts ){
$social_output="<p>Share on:</p>
<ul>
<li><a href="https://www.facebook.com/sharer/sharer.php?u=" . get_the_permalink() . '" target="_blank">Facebook</a></li>
<li><a href="https://twitter.com/share?text=" . get_the_title() . "&url=" . get_the_permalink() . "" target="_blank">Twitter</a></li>
<li><a href="https://www.linkedin.com/cws/share?url=" . get_the_permalink() . "" target="_blank">LinkedIn</a></li>
</ul>';
return $social_output;
}
Related Posts:
- How can I delete orphan keys in WordPress database tables?
- How to safely sanitize a textarea which takes full HTML input
- Custom Filter in WordPress to modify footer information via plugin?
- Is it heavyweight plugins or lots of plugins that make a site slow?
- Why does wp_enqueue_style() in plugin not load stylesheet?
- Archive list with only years and months
- How can I make an Ajax login form work with FORCE_SSL_ADMIN enabled?
- Admin plugin, how can I output a different content-type?
- How do I fix the “sorry, you are not allowed to access this page” error I get on the “plugins > settings” links?
- Plugin: How to make links in admin page open up inside of the admin panel
- Editor access to plugin settings
- Network-Wide Plugin Settings Management
- Has anyone been able to get the aweber plugin to work
- How to use a Must-Use plugin to hide a regular one and to hide itself?
- Use Media Uploader in Plugin
- wp_nav_menu(); Outside WordPress installation
- Install plugin remotely
- Fastest way to loop through all posts?
- Is there a way to share content amongst wordpress sites
- Best Apache Log Analyzer Plugin? [closed]
- Insert code after tag without using functions.php?
- How to Make a Custom Grid View
- Extend the Admin Post/Edit page
- Offering Ads Dependent on Visitor Type?
- How WordPress knows where to find locale files?
- Can wp_script_is used in pluginA check if a script is being enqueued/registered from pluginB?
- WP theme with Backbone
- WP-Markdown treating java generics like HTML tags
- Can’t get title of latest post
- How to remove all javascript in a theme wordpress?
- Display success message after wp_update_post
- Global variables during plugin activation , deactivation and uninstall operarations
- White page on custom plugin option submit
- Image upload and other options in the same plugin settings form?
- wordpress site | All-in-one-cufon IE Issue
- How to change this WP_Query to get all ProductIDs and not only specific one?
- WordPress plugin output formatting
- Finding which plugin uses cloudflare (due to GDPR)
- How can I change the meta_key for a particular piece of information?
- bbPress plugin: forum lists not showing in correct order? [closed]
- Plugin generated taxonomies’ permalinks with custom placeholders
- Paypal Integration [closed]
- Remove hovercard for only certian gravatars
- wp-custom-menu filter removes the current_page_item class
- Is there a best practice remediation for PhpStorm’s warning that void function the_post_thumbnail is used?
- Is there a loading priority for login_enqueue_scripts?
- How to apply lazy loading in background images [closed]
- How can I test plugin activation using phpunit?
- Prevent direct access to WordPress plugin assets?
- WordPress custom taxonomy not showing
- Any reason not to remove all default WP plugins?
- Getting a Page via its post-name using WP REST API v2 and Postman
- plugins_url() works everywhere but wp_reqister_script()
- Better WP Security : dashboard doesn’t work any more
- Software to run on server checking outdated wordpress installations
- Integrating boxtal PHP library into a custom WordPress Plugin
- Changing menu order of a specific plugin in dashboard
- Test my WordPress Plugin standard or not
- issue in wp_localize_script
- Sanitize $_GET variable when comparing
- Sending customer an email with link to stripe to make payment
- I can’t change permalink in WordPress 4.5.3
- WordPress plugin: efficient way to store large data
- Could not add ‘LoginLogout’ link using BAW login logout plugin
- Create a link which allows visitors to disable a plugin?
- login in wordpress using gmail account
- wordpress plugin to manage the layout/design of a theme
- CSS/JS files in WordPress
- Pass PHP variable to javascript
- create pages automatically and dynamically in wordPress
- How to authenticate via API to allow writes/updates
- Removing Plugin Action via Theme for Non-admins
- Problem with wordpress has_action() function
- WordPress – WPBakery – Near Footer jump issue
- Display Woocommerce attribute name above product title
- In woocommerce, is there any way to empty wordpress default mini cart when order placed?
- Override filter variable not working
- Why activated plugin does not appearing in left side menu bar of WordPress admin area?
- WordPress Dashboard shows no plugins installed!
- Yoast Seo Plugin meta title not showoing [closed]
- Why doesn’t a form need an ‘action’ with a plugin that uses the post data?
- URL RewriteRule doesn’t work when using WP Database Participants in my WordPress website
- All plugins deactivated. What could cause this?
- Variable passed to each() is not an array
- product_tag to style an image
- Plugin activated but plugin files nowhere to be found
- Extra Text in Home URL
- Upload images on 3D shape by customers
- Where to find remaining Boldgrid code in WP database?
- how to restore one day before deleted data in wordpress?
- A splash page on landing page
- I cannot login after installing the wp-login timeout setting plugin
- True/False ACF field returning null by default even if default value is true
- Sanitizing, Validating , etc (Plugin)
- How to trigger plugin migration code when plugin updates?
- How to Save Category and Delete Category in same Function
- Accessible ‘List Carousel’ block/pattern?
- WP galleries in posts after import. How do I do it?
- How can I create a drawable image for a contact form
- My site has only one page, and users access my uploaded mp3 files from there – can I analyze access by song title?