Comments on: The Beginner’s Guide to Writing Your Own Custom Shortcode https://torquemag.io/2017/06/custom-shortcode/ All the Word that's fit to Press Wed, 07 Sep 2022 06:10:08 +0000 hourly 1 https://wordpress.org/?v=6.6.1 By: sumit https://torquemag.io/2017/06/custom-shortcode/#comment-968455 Wed, 07 Sep 2022 06:10:08 +0000 https://torquemag.io/?p=81762#comment-968455 i was trying to create my own short code but i failed and i did not know where i was doing wrong but now i finally get it thank you so much

]]>
By: shwan https://torquemag.io/2017/06/custom-shortcode/#comment-733110 Fri, 11 Jun 2021 08:10:24 +0000 https://torquemag.io/?p=81762#comment-733110 Hello. This article is super. Thank you. I do have a question though. Could you share whether it’s possible for the php code you write to depend on a third party Library and to set up the dependency? I have an ideal php function writer that runs on my local web server I use for testing; the code requires some third party libraries which I have installed/loaded. But I don’t know how to install them on my live hosted website. Any tips? Or is it not possible at all?

]]>
By: Michael https://torquemag.io/2017/06/custom-shortcode/#comment-723620 Sun, 30 May 2021 06:56:17 +0000 https://torquemag.io/?p=81762#comment-723620 Hello,

Thanks for your code,

There is a error here.

function torque_hello_world_shortcode( $atts ) {
$a = shortcode_atts( array(
‘name’ => ‘world’
), $atts );
return ‘Hello ‘ . $a[‘name’] . !’;

In the last line, near this symbol !

return ‘Hello ‘ . $a[‘name’] . ‘!’;

Regards

]]>
By: Kaan Karadeniz https://torquemag.io/2017/06/custom-shortcode/#comment-681977 Sun, 11 Apr 2021 20:36:09 +0000 https://torquemag.io/?p=81762#comment-681977 Very informative and good content. Please keep this going. It will be useful for those who are serious about creating shortcodes. I don’t understand so much about technical issues, but if I need it one day, it will definitely be a resource I will look at.

]]>
By: Anonim https://torquemag.io/2017/06/custom-shortcode/#comment-634860 Sun, 07 Feb 2021 11:04:17 +0000 https://torquemag.io/?p=81762#comment-634860 return ‘Hello ‘ . $a[‘name’] . !’;
must be
return ‘Hello ‘ . $a[‘name’] . ‘!’;

please fix it.

]]>
By: İnstagram Hesap Kurtarma https://torquemag.io/2017/06/custom-shortcode/#comment-619669 Fri, 22 Jan 2021 16:44:05 +0000 https://torquemag.io/?p=81762#comment-619669 Thank you.

]]>
By: Hazel Flynn https://torquemag.io/2017/06/custom-shortcode/#comment-554334 Fri, 09 Oct 2020 06:04:33 +0000 https://torquemag.io/?p=81762#comment-554334 Hello. This article is super. Thank you. I do have a question though. Could you share whether it’s possible for the php code you write to depend on a third party Library and to set up the dependency? I have an ideal php function writer that runs on my local web server I use for testing; the code requires some third party libraries which I have installed/loaded. But I don’t know how to install them on my live hosted website. Any tips? Or is it not possible at all?

]]>
By: Ed https://torquemag.io/2017/06/custom-shortcode/#comment-515975 Mon, 13 Jul 2020 01:55:05 +0000 https://torquemag.io/?p=81762#comment-515975 Helpful article. Thank you!

]]>
By: Nikah şekeri https://torquemag.io/2017/06/custom-shortcode/#comment-495345 Fri, 22 May 2020 00:38:59 +0000 https://torquemag.io/?p=81762#comment-495345 I read your article. Your article is very helpful. keep posting.

]]>
By: Usluer https://torquemag.io/2017/06/custom-shortcode/#comment-494988 Thu, 21 May 2020 05:41:01 +0000 https://torquemag.io/?p=81762#comment-494988 Thank you, this is helped me a lot.

]]>