| | #1 |
| Internet Marketer Join Date: 2015 Location: Wakanda
Posts: 202
Thanks: 49
Thanked 26 Times in 13 Posts
|
I was looking for a plugin but then figured a php script on codecanyon can do what i want on my WordPress website but then i don't know a thing about php script and how to make it work on my WordPress website. Do i install it or something to have it function like wen i install a plugin in WordPress. Need help thanks
|
| | |
| |
| | #2 |
| Warrior Member Join Date: 2017 Location: Manchester UK
Posts: 18
Thanks: 0
Thanked 13 Times in 10 Posts
|
PHP is not a plugin it is a language and looks like this. sololearn are good to start
|
| |
| | #3 |
| Warrior Member Join Date: 2017 Location: Manchester UK
Posts: 18
Thanks: 0
Thanked 13 Times in 10 Posts
|
<?php $keyword_one = $result['keyword_one']; $keyword_two = $result['keyword_two']; $keyword_three = $result['keyword_three']; $keyword_four = $result['keyword_four']; $keyword_five = $result['keyword_five']; $keyword_multi = $result['keyword_multi']; $input = array($keyword_multi); $keyword = array_rand($input); // echo $input[$keyword]; $keyword_one, $keyword_two, $keyword_three, $keyword_four, $keyword_five ?> |
| |
| | #4 |
| Web developer at rom-link Join Date: 2014 Location: India
Posts: 162
Thanks: 70
Thanked 15 Times in 15 Posts
|
If you havent worked with programming language like php or havent coded in wordpress, you should probably just get a plugin. Otherwise you can add the php script with add_action hooks or add_shortcode inside functions.php. Or you may want to put the code inside a theme template file |
|
Web developer at www.rom-link.com. Web design, themes and plugins. Free guitar lessons www.mamamusicians.com | |
| |
| | #5 |
| Active Warrior Join Date: 2016 Location: 913, Pearls Omaxe Tower-2, Netaji Subhash place, New Delhi
Posts: 67
Thanks: 6
Thanked 26 Times in 21 Posts
|
The php script needs to be executed on the wordpress to work. So either you can add the script to the page where you need it to work but adding any code which you don't have idea about can be harmful. So, you better take a hard look on that code and if that isn't malicious then you can add it to the page where it needs to be executed
|
|
Tech2Globehttps://www.tech2globe.com/ | |
| |
| | #6 |
| PHP Python SQL Saas Dev Join Date: 2014 Location: San Francisco Bay Area
Posts: 41
Thanks: 0
Thanked 13 Times in 12 Posts
|
Simplest solution: Install plugin "insert php" by Will Bontrager software. https://wordpress.org/plugins/insert-php/ |
| |
|
| Bookmarks |
| Tags |
| php, run, script, website, wordpress |
| |