<?php the_title(); ?>
Your Page URL – SEO Friendly URL
<?php the_permalink() ?>
Your Short Branded URL (Tutorial)
<?php echo get_bloginfo('url')."/?p=".$post->ID; ?>
Your Current Theme Directory
<?php bloginfo('template_directory'); ?>
We are using the above codes in each social media embedding that we mentioned below. Since most people display this as mini icons at the bottom of the post, you would need to add those icons in your theme images gallery which is located at
/wp-content/themes/yourthemename/images/
Make sure to change the image format (.jpg, .gif, .png or other) and styling to fit your template needs. The codes below will need to be pasted in single.php and/or page.php.
Nội dung bài viết
Add My Posts to Digg
<a href="https://digg.com/submit?phase=2&url=<?php the_permalink() ?>" rel="nofollow"><img src="<?php bloginfo('template_directory'); ?>/images/digg.png" alt="Add this Article to Digg" /></a>
Add My Posts to Stumbleupon
<a href="https://www.stumbleupon.com/submit?url=<?php the_permalink() ?>&title=<?php the_title(); ?>" rel="nofollow"><img src="<?php bloginfo('template_directory'); ?>/images/stumble.png" alt="Add this Article to Stumbleupon" /></a>
Add My Posts to Delicious
<a href="https://del.icio.us/post?url=<?php the_permalink() ?>&title=<?php the_title(); ?>" rel="nofollow"><img src="<?php bloginfo('template_directory'); ?>/images/delicious.png" alt="Add this Article to Del.icio.us" /></a>
Add My Posts to Reddit
<a href="https://reddit.com/submit?url=<?php the_permalink() ?>&title=<?php the_title(); ?>" rel="nofollow"><img src="<?php bloginfo('template_directory'); ?>/images/reddit.png" alt="Add this Article to Reddit" /></a>
Add My Posts to Newsvine
<a href="https://www.newsvine.com/_tools/seed&save?u=<?php the_permalink() ?>" rel="nofollow"><img src="<?php bloginfo('template_directory'); ?>/images/newsvine.png" alt="Add this Article to Newsvine" /></a>
<a href="https://www.facebook.com/sharer.php?u=<?php the_permalink(); ?>&t=<?php the_title(); ?>" target="blank"><img src="<?php bloginfo('template_directory'); ?>/images/facebook.png" alt="Share this article on Facebook" /></a>
<a href="https://twitter.com/home?status=Reading: <?php the_title(); ?> – <?php echo get_bloginfo('url')."/?p=".$post->ID; ?>" title="Click to send this page to Twitter!" target="_blank"><img src="<?php bloginfo('template_directory'); ?>/images/twitter.png" alt="Share this Article on Twitter" /></a>
We are using your short branded URL in this code. You can also use the tweetmeme retweet button like we are using by following this tutorial. Social Media Interactivity can also be incorporated in your posts by the use of famous plugins like Sharethis, Sociable, and Add to Any. We feel that above codes are the most popular ones used, but if you think that there are other social media profile codes that should be included and you know the codes, feel free to let us know via comment, email, or twitter and we will add it here.
Tin tức nổi bật
Thiết kế web theo mẫu
Thiết kế web theo mẫu là gì? Thiết kế web theo mẫu là dịch vụ website được xây dựng...
Tổng hợp 20+ cách kiếm tiền từ website trong năm 2020
Thời kỳ 4.0, Internet trở thành một phần không thể thiếu trong cuộc sống của chúng ta. Người...
10 bước xây dựng kế hoạch marketing online
Thị trường luôn thay đổi và chính vì thế các chiến lược marketing online của bạn cũng cần...
Ý tưởng đặt tên thương hiệu – Cách chọn tên miền website – Lời khuyên vàng từ ITC Việt
Cách chọn tên miền website. Chúng tôi là ITC Việt. Chúng tôi là công ty thiết kế website...
Thiết kế website theo yêu cầu
Hiện nay Dịch vụ Thiết kế website theo yêu cầu đã không còn xa lạ đối với các doanh...
Thiết kế trang web, lập trang web, dựng trang web bán hàng
Nội dung bài viết Thiết kế trang web Thiết kế trang web là điều mà các công...
E-commerce là gì? E-business là gì? So sánh E-commerce và E-business
E-Commerce (tiếng Việt là thương mại điện tử) đang là một trong những vấn đề đáng quan tâm của...
Để thiết kế web đẹp bạn không thể bỏ qua 8 lưu ý sau
Việc thiết kế web ngày nay không còn dừng lại ở việc cung cấp thông tin đủ hay...