• I want to use some images with my plugin. Where should I put them? How do I refer to them? Now I put the in the plugin subdirectory (plugins/punts) and refer to them statically (with the full path– https://…..) but I suspect this is not the right way to do it…

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • you could put them in a images folder…

    Try this /root/wp-content/theme/yourtheme/images

    This is just a example, if your wordpress is installed in the root dir.

    One way to do it is to make sure your plugin is placed in its own plugins subdirectory with the images, then use something like:

    $plugin_dir = get_settings('siteurl') . '/wp-content/plugins/punts/';

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to put images.’ is closed to new replies.