Terminé

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>';

}

Compétences : PHP, Architecture Logicielle

en voir plus : need help building wordpress site, need help building a website on wordpress, help with building custom wordpress website, wordpress custom shortcode plugin, how to use shortcode in wordpress page, wordpress shortcode tutorial, do_shortcode in functions php, how to create custom shortcode in wordpress, wordpress create shortcode with parameters, wordpress shortcode example, wordpress shortcode php, php, wordpress, hello i obtained nulled a script using php, wordpress breadcrumb function custom post types, custom wordpress theme individual developer php ajax, call php function wordpress, need custom wordpress plugin, need someone custom wordpress theme, need custom wordpress theme

Concernant l'employeur :
( 0 commentaires ) United States

Nº du projet : #17333682

Décerné à:

virendrapalsingh

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:// Plus

%selectedBids___i_sum_sub_4% %project_currencyDetails_sign_sub_5% USD en 1 jour
(65 Commentaires)
6.0

23 freelance font une offre moyenne de $36 pour ce travail

Rahulkeshwani19

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+ Plus

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 0 jours
(120 Commentaires)
7.0
vranjan

Hi, I'm a full-stack developer with more than 10 years of work experience. Expert in BOTH Backend and Front-end Programming, PHP - OOP, MVC, REST API, HTML/CSS/JAVASCRIPT, Wordpress Theme Integration, Woocommerce Plus

%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% USD en 1 jour
(97 Commentaires)
6.5
artistixeit

"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] Plus

%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% USD en 1 jour
(10 Commentaires)
5.5
rishab6565

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 Plus

%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% USD en 1 jour
(30 Commentaires)
5.8
mahipal0108

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 Plus

%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% USD en 1 jour
(49 Commentaires)
5.5
parimaldesai77

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 Plus

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 2 jours
(27 Commentaires)
4.8
ersumit88

Hi, It is my great honor to work on your project. I have all skills and experience for which you are looking for. Yes, I can do it. Expert in Wordpress and its plugins. My relevant skills for the project and Plus

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 3 jours
(35 Commentaires)
4.9
aftabyounas

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 Plus

%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% USD en 1 jour
(10 Commentaires)
4.2
alkajain2906

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 Plus

%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% USD en 1 jour
(3 Commentaires)
3.6
dhavalschotaliya

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 Plus

%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% USD en 1 jour
(17 Commentaires)
3.4
irisinformatics

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 Plus

%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% USD en 1 jour
(10 Commentaires)
3.4
dku563a585a17906

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

%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% USD en 1 jour
(9 Commentaires)
3.0
nikivan

Look, I dont understand anything but I can do it :D perhaps, it seems something I understood but I really not sure what you really want. Can you tell me detailed, please? Best regards, Ivan N. P.S. Just finished Plus

%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% USD en 1 jour
(4 Commentaires)
2.6
iGTTech

I am enthusiastically writing in response to your advertisement for the position of a Web Designer and developer. As a creative-minded designer/developer with over five years of functional web designing experience, I a Plus

%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% USD en 1 jour
(4 Commentaires)
2.7
HiddinMinds

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 Plus

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 4 jours
(7 Commentaires)
1.9
abhilashpvthrn

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 Plus

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 2 jours
(4 Commentaires)
0.6
vrajeshdavecoder

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 Plus

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 3 jours
(4 Commentaires)
0.8
%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% USD en 1 jour
(0 Commentaires)
0.0
kumarhardeep2611

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 Plus

%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% USD en 1 jour
(0 Commentaires)
0.0
marufparvej313

I can do this easily. I have done this types of works many times for my websites.

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 2 jours
(0 Commentaires)
0.0