Custom Wordpress PHP function and shortcode
Orçamento $10-30 USD
- Freelancer
- Desenvolvimento Ágil
- PHP
- Custom Wordpress PHP function and shortcode
Need to add a function to [login to view URL] that replaces a variable in a script and replaces it with one from the URL string. Then I need a shortcode to utilize that fucntion in building a page.
The URL format would be http://mydomain.com/landingpage?wistia_id=12345678
I have a start on the function here, but it needs a few more additions, and proper syntax at the start (needs function name, etc).
I want to add to the function an input that lets me put a fallback ID in the shortcode in case there is no custom ID found in the URL query (so the video embed does not come back empty).
/* This function dynamically replaces wistia_id with variable from URL*/
var $wistia_id = htmlspecialchars($_GET["wistia_id"]);
if(!empty($wistia_id)){
echo ' <script src="https://fast.wistia.com/embed/medias/'.$wistia_id.'.jsonp" async></script><script src="https://fast.wistia.com/assets/external/E-v1.js" async></script><div class="wistia_responsive_padding" style="padding:56.25% 0 0 0;position:relative;"><div class="wistia_responsive_wrapper" style="height:100%;left:0;position:absolute;top:0;width:100%;"><div class="wistia_embed wistia_async_'.$wistia_id.' videoFoam=true" style="height:100%;position:relative;width:100%"><div class="wistia_swatch" style="height:100%;left:0;opacity:0;overflow:hidden;position:absolute;top:0;transition:opacity 200ms;width:100%;"><img src="https://fast.wistia.com/embed/medias/'.$wistia_id.'/swatch" style="filter:blur(5px);height:100%;object-fit:contain;width:100%;" alt="" onload="this.parentNode.style.opacity=1;" /></div></div></div></div>';
}
Concedido a:
Hi there, I am expert with wordpress code level customization. I can easily build shortcode that you are looking for. Some of my recent successful projects:- [login to view URL] ( Stress Reduction ) http:// Mais
23 freelancers estão ofertando em média $36 para esse trabalho
I have gone through your requirements and I will do your website perfectly and according to your requirements. [login to view URL] [login to view URL] [login to view URL] I have 5+ Mais
"Custom Wordpress PHP function and shortcode" Please check the work below :-- Wordpress: [login to view URL] [login to view URL] [login to view URL] [login to view URL] | [login to view URL] Mais
Hello, Greetings of the day!! I have read your job description and I am available to work on this assignment. I'm proficient in Wordpress, Html, Css and Php and can do this job efficiently. Lets discuss in d Mais
I am a experienced developers & designer.I have great skills in the areas of Wordpress, Drupal .NET, PHP HTML,Javascript, MYSQL and Photoshop. I am looking for long term relationships with you that is why working at ve Mais
Greetings of the day, I have a Web development expert with over 5 years experience in setup and customization of WordPress, wooCommerce, and other platforms. Till date, I have created over 300+ websites, most of whi Mais
Hi, I have read your project description this will be done in your required time spam with 100% Satisfaction. Kindly message me so we can discuss in detail over chat...... Some of my skills are mentioned below: HTML5 Mais
reetings, Thank you for posting a Job. I WILL DO THIS AS PER YOUR REQUIREMENT AND EXPECTATIONS. With the experience of over 300+web development projects including ANDROID, IOS, WEBSITES, WEB APPLICATIONS AND SOFTWARE Mais
Hello, i have read your requirement and i am interested in your job. I will create a function which will get value from the URL and pass to the function. I will also create a shortcode of that function. I have 5+ ye Mais
Dear Hiring Manager, I had a look at your given job post and came to know that you are looking for a Website developer to build a unique website as per your requirement. I have 5 years of experience in especiall Mais
Hello sir we have a good technical team. we have 7yr experience in laravel, wodpress, wodpress plugin deveopment, core php, . we work so less cost as per client wish. just you hire and test us thanks
Hi There ! I have read your description and can work on your project with in this budget and time frame. To see my previous Work and Reviews please visit my profile You can text me here to discuss more abou Mais
It is undeniable that a website/ mobile application is indispensable in this day and age. The emergence of the Internet era you with the opportunity to expand its reach to its target audience as well as serve its exist Mais
Hello there! I am interested to work on your [login to view URL] file. Please explain more in details. I am Vrajesh. I have total 4 years of experience in wordpress. You can have a look my works : https://www.s Mais
I strive to offer WordPress solutions that are compatible with all business models and industry verticals. I provides WordPress CMS development, plugin development, theme customization and maintenance services, backed Mais