Support » Themes and Templates » colorway theme-image url in php,not from template directory

  • Resolved MariaWeb

    (@mariaweb)


    This is how you get it from template directory:
    <img src="<?php echo get_template_directory_uri(); ?>/images/exemple.png" class="exemple" alt="exemple"/>

    but i want to get my image from the media library, uploads. how can i do that?

Viewing 1 replies (of 1 total)
  • im just an idiot…. i forgot about:

    <a href="some url you linked to"><img src="image url" alt="exemple" width="59" height="60" class="aligncenter size-full wp-image-1" /></a>

    don’t know what i was thinking …sorry about that …. :S (so embarrassed right now)

Viewing 1 replies (of 1 total)
  • The topic ‘colorway theme-image url in php,not from template directory’ is closed to new replies.