You need to replace the URL paths with:
<?php the_permalink(); ?>
Also consider replacing the title or description text for each button with:
<?php the_title(); ?>
Here”s an example:
<!-- Twitter -->
<a href="http://twitter.com/share?url=<?php the_permalink(); ?>&text=<?php the_title(); ?>" target="_blank"><img src="http://www.simplesharebuttons.com/images/somacro/twitter.png" alt="Twitter" /></a>
This code has been tested within single.php with a standard loop.
Related Posts:
- Multiple social buttons with a fast loading? [closed]
- how to set social icons to product / post template (Auros theme)? [closed]
- How to use “Add link” pop up for a WordPress widget
- How to get all posts related to particular category name?
- Add tag to post api wordpress
- Confirmation box when submitting post for review
- Add a new post status in the post progression
- How to add a quicklink to the Posts Admin Published|Scheduled|Trash menu
- How to show list of posts by author and category?
- Getting the Next and Previous Posts Titles in the Sidebar?
- How to control which category will be picked for the slug of a post?
- How to hide the Text Area in the Post Edit screen
- upload image in a meta box
- Search posts by post author name
- Why is our post editor stuck at cols=40?
- how to limit and display tag?
- Insert custom div between posts
- How to Display Post View Count
- Remove double space after a period
- Adding Multiple Values to a Post Meta Key
- Displaying the number of posts in a custom loop (without including the number of posts of a loop below)?
- Warning: Creating default object from empty value in … /post.php
- Display page content AFTER a loop of posts
- How to get the date of a post in WordPress, so I could use it in a script?
- Unwanted Duplicate Posts Showing in Pagination Pages
- Check is_single() outside loop
- Only display a certain number of posts, dependent on how many posts there are available in a query
- how to replace embedded “full” sized images within a post with the “large” ones
- Downgrade user from role that allows post creation
- How to store an extra (surrogate) ID when creating a post with wp_insert_post?
- Change default Posts page
- Batch process: remove first image from post content
- Articles are text-only in any “Category” instead of HTML
- Facebook Share Thumbnail
- Delete WordPress posts from URL list sql query
- Posts with multiple authors with different roles
- How to get the user meta data for a post?
- How to change permalink on post click on post listing page
- Auto insert More tags in all posts
- How to change post status from frontend?
- WordPress Rest API Create Post
- How to get next post ID?
- How to display content from the main blog on another from multisite network as it would be its own
- performance of post_exists
- Add a custom meta box in the post options that loads some html code in the header
- Display an author’s posts on his own author page
- Static posts page with home.php
- A/B testing of posts with unique URLs for each variant AND editing in custom fields
- How to dynamically parse and transform post/page content before displaying it?
- getting “Object of class WP_Post could not be converted to string” – when it is a string
- How to get posts published on the latest date?
- Using setup_postdata() with multi-dimensional array
- Bolding several words at once
- Post Form Results to Table in Same page
- Post Title to featured Image ALT
- I don’t want the complete article to show on homepage
- wp_query if have posts show date but not in loop
- how many visitor open this post? [closed]
- Have posts included on a page that share same category
- displaying the categories post
- Preview page/post revisions without overwriting current content
- Adding external field to my post form (admin side) and to post show (frontend side)
- While loop in functions.php outputting the_title() of each post on frontpage
- Execute php after post save/update
- How to pull sticky post permalink inside php?
- Ignore posts content in the posts queries for internal linking
- Add CSS and JS files of the template post on a WordPress page
- Many buttons not functioning in WordPress dashboard (as admin)
- Is there a way to save different data when USER interacts with the same POST?
- New Post bubble
- Fill the exclude array() in get_posts()
- Prevent Archive URLs
- Dev and prod on the same database- dev version active for IOS
- show only one category and filter by tag
- How can I exclude only a specific sub category post from category display?
- How to fetch posts that are stored in the different table than the default table (wp_posts)?
- Update user meta when post published no working
- Posts are not showing up on next page.
- Custom layout manager for posts
- Post as frontpage – avoid duplicate content
- Where is object, property or label in the database that controls the order of the posts being displayed?
- Is there a way to change the complete URL of the blog post for a redirecting tracking link?
- WordPress with static posts page and custom permalink structure doesn’t find posts with numeric permalinks
- My posts section for logged in user
- How to get single post by one author?
- Latest posts on all pages
- How to create a post based on data in a table?
- Display all posts from selected month
- How to show only the date, the title and a little “summary” of my WordPress post in my custom theme?
- Permalink remain the same on each page
- Displaying warning if no featured image has been set – Post Editor
- How to highlight most recent posts in a list
- wordpress show category link instead of post link [closed]
- CSS – Change height of Storefront / WooCommerce product categories, but not products
- How to add a new page that will function as a separate blog/news article page
- How can I add a custom caclulation form in post?
- Display post count on archive page in reverse order
- Displaying all images from a WordPress post (including media library)
- WordPress shows a count of published items on the site, but the items are not appearing when you click on the “published” link
- Restore posts, but only posts that exist in my database backup