Quantcast
Channel: WordPress.org Forums » All Posts
Viewing all articles
Browse latest Browse all 96044

jmarc_d on "img path in wordpress text editor"

$
0
0

Hi,

I'm currently trying to plug a html theme to wordpress. For that I'm copy pasting HTML in the text editor, but it gave a weird problem with my img path...

for example:
<img src="<?php bloginfo('stylesheet_directory'); ?>/_include/img/slider-images/1.jpg" alt="Image" data-fullwidthcentering="on">

the path mess up to (chrome source code):
<img src="<?php bloginfo('stylesheet_directory'); ?>/_include/img/slider-images/1.jpg” alt=”Image” data-fullwidthcentering=”on”/> where the " appear as &#8221

It looks like the src is not closing and I can't find why.

ps: I'm using
remove_filter( 'the_content', 'wpautop' );
remove_filter( 'the_excerpt', 'wpautop' );
in my function.php

Any clue?


Viewing all articles
Browse latest Browse all 96044

Trending Articles