Credits :WordPressHero
hi thanks for watching WordPress Hero. Netts YouTube video channel is this video you will learn how to insert dhb codes inside your blog post or widget sidebar by default word press doesn’t allow you to execute PHP script but you can install a plug-in that will allow you to run these are favorite plugins HP plug-in to allow PHP in WordPress posts or pages and PHP code widget to allow pH be in WordPress widgets

now in order to install these all you have to do is go to plugins

dulac add you and then search for these plug-ins

and then once you find the plug-in just so I’m select install now and then activate the plug-in and once installed this plug-in is going to allow you to execute PHP codes on your post and Pages go ahead and install the other plug-in with which is the PHP code widget

then you can have them to your plugins to just make sure they’re both activated so we have the PHP code widget right here and then insert the HP so with insert the HB load again you have to just replace this tagged with these special tag same thing with this tag right here replace it with the slash is 3 PHP tax in example I have one right here so I’m going to start with the special tag make sure you are under the text editor when you’re adding your code and then will copy this cold right here since we’re not going to be using this tag anymore

and and then make sure to enclose it instead of this one you would enclose it with this tag right here but now with a backsplash

I hit publish right here and let’s Garden check that if that’s actually works this code shows the current date and time

and taking a look at that now we have successfully executed the phb code showing the current server date and time

to add a peach be cold in the widget then go ahead and go to your appearance and still active widgets

once you’re on your widgets panel look for the PHP code so that where you want it to show up and select add widget and now we have it right here and you can drag it wherever you want it to show up with this plugin all you have to do is just copy the code you don’t need to change the opening and closing tags and then just some save it and if we take a look at our website right now you can see our sample PHP code is working fine so that’s basically it that’s all you need to be able to run and execute the HP scripts on your hosen pages and on your widget

thank you for watching if you want to receive more helpful information make sure to subscribe to our Channel

is a very cool plug-in called XYZ PHP code Snippets and they allow for PHP code to be inserted into a page or custom post type or post for that and what it does is it creates a short code once you put the PHP code into it so it’s kind of a container most like a widget or something like that so I’m glad you know where press generally cobble up a PHP code inside of a page or post so this is a good way to get around them and the problem is is sometimes they’re on hosting like the BP engine if there’s a script of some other script saying you are not allowed to have PHP to it you’re going to run into an error so I could show you as an example here that’s a pretty a new one with all this one that’s playing at Gretchen’s and if I add this code ever been testing out the loop and we going to create a throwing error and we’ve been blocked so hopefully that.

two prominent I’ll take a few moments for to unblock

I was going to do that and it’s the here so as you can see that can be kind of an issue and we don’t want that so the best thing to do is go back to your ex wife scripts and do Skype create a new

I’m strapped for the generic one and then from there you can add it to the database and I’ll show you how and the upcoming video here

all right so I was able to go backwards on my browser and we’re going to try this again to being traded and hopefully the block will be done this protest year

and if you create this every joke so they have display Integrations and if you go into our database and watch this page here with us.

Can you search for where at in XYZ scripts and see that it’s there now so she’s at the bottom and then we can go ahead and edit this

and have your pH pee test and then you just pasted in there and then when I get home safe and then go and that’s now rear end over that code

so that’s it that’s how you create a script lengthy hosting is blocking that script this happens with Elementor specifically and thus XYZ script as well so we’re getting a 403 error and this was able to this is the way we got around that by going directly to the database and inserting the code they’re the helps you let me know if you have any questions

Add a review

Origin Ten  Ltd,
Queens House
200 Lower High Street
Watford
WD17 2EH

Stay tuned

Exceptional quality. Ethical factories. Radical Transparency. Shipping and returns.

    Privacy Preference Center