Path to images
-
Hi all, I’m new on wordpress, this is my first website.
My problem is the following, I’ve created plugin and added it to my wordpress, but my plugin have images that I want display in the page.I’ve tried different way and I’m still not able to show the images.
My images are in the following path:
C:\wamp\www\wordpress\wp-content\plugins\aline\imagesI’ve tried put these options in my HTML but none of them work:
<img src=”<?php bloginfo(‘template_url’); ?>/images/publico1.png” alt=””>
<img src=”<?php echo get_template_directory_uri() ?>/images/publico1.png” />
<?php echo ‘<img src=”‘ . plugins_url( ‘images/publico1.png’, __FILE__ ) . ‘” > ‘; ?>
<?php echo ‘<img src=”‘ . plugins_url( ‘images/publico1.png’, dirname(__FILE__) ) . ‘” > ‘; ?>How can I do it, I’m doing something wrong?
Many Thanks
- O tópico ‘Path to images’ está fechado a novas respostas.