[resolved] colorway theme-image url in php,not from template directory (2 posts)

  1. MariaWeb
    Posted 2 years ago #

    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?

  2. MariaWeb
    Posted 2 years ago #

    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)

Topic Closed

This topic has been closed to new replies.

About this Topic