Você já percebeu que alguns sites têm um pequeno input na parte inferior do seu post com um link curto “shortlink” para o seu artigo? Bem, geralmente, este shortlink é proveniente do filtro get_shortlink do WordPress. Neste artigo, vamos mostrar como você pode usar os códigos get_shortlink para exibir um pequeno input em seu post com links curtos no seu tema. Ele também permitirá que o usuário selecione o shortlink em um clique, o que torna mais fácil para que seja copiado.
Tudo que você tem a fazer é colocar esse código em algum lugar do arquivo de loop (geralmente em single.php).
<?php if (function_exists('wp_get_shortlink')) { ?> <div><span class="post-shortlink">Link Curto: <input type='text' value='<?php echo wp_get_shortlink(get_the_ID()); ?>' onclick='this.focus(); this.select();' /> </span></div> <?php } ?>
Por padrão, ele é “https://seusite.com.br/?p=652”, ou algo similar. Mas isso pode ser substituído por outros serviços usando qualquer plugin de shortlink que usa o filtro “get_shortlink” para substituir o shortlink corretamente como Stats WordPress.com para (wp.me) ou WP Bitly para (Bit.ly)
[leia]Criar URLs Curtas Automáticas para seus Posts[/leia]
Depois de ter adicionado o código em seu tema, a visualização ficaria mais ou menos, desconsiderando o estilo CSS, como o input “Link Curto”, que você logo abaixo.
[fonte]OttoPress[/fonte]
114 respostas
I am a student of BAK College. The recent paper competition gave me a lot of headaches, and I checked a lot of information. Finally, after reading your article, it suddenly dawned on me that I can still have such an idea. grateful. But I still have some questions, hope you can help me.
Your article gave me a lot of inspiration, I hope you can explain your point of view in more detail, because I have some doubts, thank you.
Wow, marvelous blog layout! How lengthy have you been running a
blog for? you make blogging glance easy. The total glance of
your web site is magnificent, as neatly as the content!
You can see similar here dobry sklep
I do not even know how I ended up here, but I thought this post was great.
I do not know who you are but certainly you’re going to a famous blogger if you aren’t
already 😉 Cheers! I saw similar here: E-commerce
Hey there! I’m at work surfing around your blog from my new iphone!
Just wanted to say I love reading your blog and look forward to all your posts!
Keep up the great work! I saw similar here: E-commerce
Howdy! Do you know if they make any plugins to help with Search Engine Optimization? I’m trying to get my blog to rank for some targeted keywords but I’m
not seeing very good results. If you know of any please share.
Thank you! You can read similar art here: Sklep internetowy
It’s very interesting! If you need help, look here: ARA Agency
Hello there! Do you know if they make any plugins to help with SEO?
I’m trying to get my blog to rank for some targeted keywords but I’m not seeing very good success.
If you know of any please share. Cheers! I saw similar art here: Scrapebox AA List
mexican pharmaceuticals online: cheapest mexico drugs – buying from online mexican pharmacy
online pharmacy india http://indiaph24.store/# pharmacy website india
reputable indian pharmacies
mexican pharmaceuticals online: cheapest mexico drugs – mexican rx online
https://canadaph24.pro/# canadianpharmacyworld
online canadian pharmacy review [url=https://canadaph24.pro/#]Prescription Drugs from Canada[/url] canadian pharmacy 24 com
http://indiaph24.store/# reputable indian pharmacies
https://nolvadex.life/# lexapro and tamoxifen
propecia buy [url=https://finasteride.store/#]cost of propecia price[/url] cost of propecia for sale
buy zestril 20 mg online: lisinopril 1.25 mg – lisinopril 2019
http://lisinopril.network/# order lisinopril 20mg
cytotec online [url=http://cytotec.club/#]cytotec buy online usa[/url] buy cytotec online
https://nolvadex.life/# tamoxifen benefits
lisinopril 20 mg pill [url=https://lisinopril.network/#]lisinopril 50 mg tablet[/url] 60 lisinopril cost
http://cytotec.club/# Abortion pills online
tamoxifen headache: tamoxifen joint pain – tamoxifen for sale
aromatase inhibitor tamoxifen [url=https://nolvadex.life/#]tamoxifen therapy[/url] tamoxifen rash pictures
http://lisinopril.network/# lisinopril 10 mg tablet cost
https://finasteride.store/# buy generic propecia prices
ciprofloxacin generic price [url=http://ciprofloxacin.tech/#]cipro pharmacy[/url] cipro 500mg best prices
buy cheap propecia without insurance: buy propecia without prescription – buy cheap propecia
medication lisinopril 20 mg [url=http://lisinopril.network/#]prinivil tabs[/url] lisinopril 20 mg prices
http://cytotec.club/# cytotec online
http://ciprofloxacin.tech/# buy ciprofloxacin over the counter
tamoxifen cyp2d6: nolvadex d – tamoxifen vs raloxifene
cheapest lisinopril 10 mg [url=http://lisinopril.network/#]lisinopril otc[/url] lisinopril 20mg for sale
http://ciprofloxacin.tech/# ciprofloxacin over the counter
https://finasteride.store/# cost of cheap propecia price
2 prinivil [url=https://lisinopril.network/#]lisinopril without rx[/url] buy prinivil
cost generic propecia without a prescription [url=http://finasteride.store/#]cost of propecia without dr prescription[/url] cost cheap propecia online
femara vs tamoxifen: tamoxifen and grapefruit – tamoxifen endometrium
http://cytotec.club/# Cytotec 200mcg price
cost propecia without insurance [url=http://finasteride.store/#]buying propecia no prescription[/url] cost of propecia no prescription
https://ciprofloxacin.tech/# cipro pharmacy
cost of lisinopril 2.5 mg: rx 535 lisinopril 40 mg – how much is lisinopril 40 mg
http://lisinopril.network/# lisinopril 49 mg
order cheap propecia prices [url=https://finasteride.store/#]buy propecia without dr prescription[/url] propecia buy
http://lisinopril.network/# lisinopril 20mg discount
lisinopril without an rx [url=http://lisinopril.network/#]lisinopril 25 mg tablet[/url] zestril 10
buy generic propecia without insurance: buy propecia online – buy propecia for sale
https://cytotec.club/# order cytotec online
medicine lisinopril 10 mg: best price for lisinopril – buy lisinopril 20 mg online
http://finasteride.store/# order cheap propecia pills
ciprofloxacin [url=http://ciprofloxacin.tech/#]ciprofloxacin generic[/url] buy cipro online without prescription
https://lisinopril.network/# lisinopril 10 best price
order cytotec online: buy cytotec pills – cytotec buy online usa
buy cytotec online fast delivery [url=https://cytotec.club/#]Misoprostol 200 mg buy online[/url] buy cytotec
http://cytotec.club/# purchase cytotec
prinivil tabs [url=https://lisinopril.network/#]lisinopril 20 mg discount[/url] zestril
http://finasteride.store/# buying generic propecia without rx
liquid tamoxifen [url=https://nolvadex.life/#]tamoxifen blood clots[/url] tamoxifen warning
cytotec online: Misoprostol 200 mg buy online – buy misoprostol over the counter
http://ciprofloxacin.tech/# buy cipro cheap
http://ciprofloxacin.tech/# buy ciprofloxacin
buy cipro online without prescription [url=http://ciprofloxacin.tech/#]ciprofloxacin generic[/url] ciprofloxacin 500mg buy online
http://viagras.online/# Viagra online price
Cialis 20mg price [url=https://cialist.pro/#]cialist.pro[/url] Buy Tadalafil 20mg
Cenforce 150 mg online: cenforce for sale – order cenforce
Buy generic 100mg Viagra online: Buy generic 100mg Viagra online – Generic Viagra for sale
http://cenforce.pro/# Cenforce 100mg tablets for sale
https://viagras.online/# Sildenafil 100mg price
Levitra online USA fast [url=https://levitrav.store/#]levitrav.store[/url] Cheap Levitra online
cheapest viagra: Generic Viagra online – best price for viagra 100mg
http://cenforce.pro/# Buy Cenforce 100mg Online
cenforce for sale [url=http://cenforce.pro/#]Cenforce 150 mg online[/url] buy cenforce
Buy Vardenafil 20mg online: Levitra generic price – Cheap Levitra online
Buy generic Levitra online [url=https://levitrav.store/#]Cheap Levitra online[/url] Cheap Levitra online
Kamagra tablets: Kamagra Oral Jelly – buy kamagra online usa
http://viagras.online/# Viagra tablet online
http://cialist.pro/# Buy Tadalafil 20mg
Cenforce 150 mg online: Cenforce 100mg tablets for sale – buy cenforce
https://kamagra.win/# Kamagra Oral Jelly
Viagra without a doctor prescription Canada [url=https://viagras.online/#]Buy Viagra online[/url] buy viagra here
http://levitrav.store/# Generic Levitra 20mg
Sildenafil 100mg price: Buy Viagra online – viagra without prescription
Viagra online price [url=https://viagras.online/#]viagras.online[/url] Cheapest Sildenafil online
https://viagras.online/# Viagra online price
http://pharmmexico.online/# mexican border pharmacies shipping to usa
reputable mexican pharmacies online [url=https://pharmmexico.online/#]medicine in mexico pharmacies[/url] mexican border pharmacies shipping to usa
mexico pharmacies prescription drugs: best mexican online pharmacies – buying from online mexican pharmacy
http://pharmworld.store/# canadian pharmacy world coupon code
canadian pharmacy phone number: online canadian pharmacy – canada ed drugs
non prescription pharmacy: canada mail order prescriptions – mexican pharmacy no prescription
https://pharmindia.online/# Online medicine home delivery
cheapest pharmacy to fill prescriptions with insurance [url=http://pharmworld.store/#]pharm world store[/url] best online pharmacy no prescription
best no prescription pharmacy: online pharmacy – pharmacy online 365 discount code
canadian pharmacy world [url=http://pharmcanada.shop/#]ed drugs online from canada[/url] reliable canadian online pharmacy
https://pharmmexico.online/# mexican drugstore online
adderall canadian pharmacy: canada pharmacy – canadian pharmacy world
mexican pharmacies no prescription: buying drugs without prescription – online pharmacy without prescription
canada drugs without prescription [url=http://pharmnoprescription.icu/#]overseas online pharmacy-no prescription[/url] buy prescription drugs online without doctor
http://pharmmexico.online/# mexico drug stores pharmacies
pharmacy coupons: pharm world – canadian online pharmacy no prescription
canadian pharmacies that deliver to the us [url=http://pharmcanada.shop/#]northwest pharmacy canada[/url] safe canadian pharmacy
http://pharmnoprescription.icu/# how to get a prescription in canada
canada online pharmacy no prescription: online pharmacy – best no prescription pharmacy
buy medications without a prescription: pharmacy no prescription – buying drugs without prescription
medicine with no prescription: prescription drugs canada – online pharmacy not requiring prescription
http://pharmnoprescription.icu/# canada prescriptions by mail
canadian pharmacy discount coupon [url=https://pharmworld.store/#]pharm world[/url] online pharmacy prescription
mexico drug stores pharmacies: best online pharmacies in mexico – mexican rx online
prednisone 54899 [url=http://prednisoned.online/#]can i purchase prednisone without a prescription[/url] can i buy prednisone online in uk
https://zithromaxa.store/# zithromax capsules australia
neurontin 800 mg price: cost of brand name neurontin – cost of neurontin 100mg
zithromax 250 mg pill: buy cheap zithromax online – buy cheap generic zithromax
doxycycline 100mg price: buy cheap doxycycline online – buy doxycycline for dogs
neurontin 600 mg coupon [url=https://gabapentinneurontin.pro/#]neurontin generic brand[/url] neurontin 50mg tablets
where can i buy zithromax capsules: average cost of generic zithromax – zithromax 1000 mg online
online prednisone: prednisone brand name – prednisone 5mg price
neurontin 300 mg coupon: neurontin coupon – neurontin price uk
gabapentin: neurontin price south africa – buy neurontin canada
http://amoxila.pro/# price of amoxicillin without insurance