Jiron: Doesn’t that depend?.

 
Peake: There are plugins to edit prices fast yes

Marney: Can’t remember what though

Fuess: I dont think there is one to do what I want.because its more a case of making the sale price the correct price lol

Somrak: On their old site it shows the RRP crossed out, then the right price next to it. I reckon if I remove the SALE button on each product with CSS it will function fine

Burnette: Https://gist.github.com/staycreativedesign/94edee89f6dceab93c28

Schlobohm: P**** error: syntax error, unexpected ” in /Users/mindblownkaboom/Projects/this_land/wordpress/wp-content/themes/this-land/single.php on line 16

Chum: As it says, there is an on line 16 of single.php that shouldn’t be there.

Jover: Well I’m trying to call image src

Fourre: Dopieee: you can’t mix html into php code

Millington: Yes how do i escape it?

Pruna: Wait it think i got it

Baff: Clausing: You can mix HTML with PHP in the sense that he is trying, of course you can. You can define a source for an img using echo.

Riecke: Img src=”?php echo $media; ?” / would work for example

Liljeberg: Https://gist.github.com/staycreativedesign/f6aa8062bb365dba6ea6

Zeherquist: CMFDesign: No, he is writing html directly inside ?php ?

Herget: Of course, the better way would be to write ?php echo $media; ?

Duenez: Clausing: Oh yeah, I missed that lol

Brigman: I was looking directly at the call for the image

Canzoneri: Is there a better way of doing?

Dudek: Don’t mix logic into the template

Ramphal: So where should I put it?

Conforme: What about creating a helper function?

Basilio: Hmmm what would the wordpress function name be?

Mcauliffe: Err i mean the wordpress action

Ashbourne: Would it be the_post?

Canellas: Add_action ‘the_post’, ‘my_the_post_action’ ; ?

Newsam: Dopieee: just create a function in functions.php and then use it in the template

Tangerman: No need for add_action

Shillingford: Https://gist.github.com/staycreativedesign/dc40198e79cef6c451b9

Shekey: Its not recognizing $small_image

Baloy: Dopieee: put $post as argument. then feed in $post when using the function

Eiche: Ok now I’m getting it

Ruescher: Clausing, thanks for the help man

Vanorsdale: Hi, I need help with this virus: https://www.google.com/search?sclient=psy-ab&site=&source=hp&q=%24_SERVER”x48124x54120x5f125x53105x52137x41107x45116x54″&oq=&gs_l=&pbx=1&gws_rd=cr&

Weedman: I’d like to give you a fork of that code as I’m seeing some issues and then tell you what I did ;

Shaughnessy: Jiron, Clausing is helping me out figure out functions

Herbster: I see, I’d still like to give you my take on it =

Cookis: Https://gist.github.com/anonymous/8bf9a9460d499e97046d

Villenas: Since you are just taking a value and outputting it, it can be escaped and utilized in malicious ways, also p***ing $post around isn’t needed since we have functions in core that handle the ID you need =

Cance: Those global functions.

Grotberg: You’ll see that I’ve replaced your regular outputs with a printf which lets us call esc_url to sanitize the image URL, and get_the_ID as opposed to p***ing in $post nad using $post-ID as using global functions over $post variables are more ieal so easy to break things if you use the global $post variable needlessly

Bergquist: Gustav1234x: http://codex.----escape_autolink_uri:a03ded6cd97ffffa8f7b4e1454f3eecc----.org/FAQ_My_site_was_hacked , and stop trying to patch up your hacked site. Reinstall or restore your backups. And read http://codex.----escape_autolink_uri:a03ded6cd97ffffa8f7b4e1454f3eecc----.org/Hardening_WordPress

Hering: Jiron: Do I have to redo my websites?

Normandeau: Jiron: Doesn’t that depend? Say you want to use this helper in more than one place. A template with not only one kind of post type but several. Then you’d need to feed an argument for the specific post you want to get an image for.