• Hi,

    I have the following image path in my functions.php:

    'two' => array (
                    'label' => 'Option Two',
                    'value' => '<img src= themes/mytheme/groupimages/theimage.jpg />'
                ),

    Which of these two functions should I use plugins_url or plugin_basename ? The image is not in the library upload folder, as I don’t want it to be.

    Thank-you!

Viewing 1 replies (of 1 total)
  • Moderator Jose Castaneda

    (@jcastaneda)

    THEME COFFEE MONKEY

    If it is a theme you would want to use either: get_template_directory or get_stylesheet_directory.

    I only say this because you mention functions.php and that is a file used by themes.

Viewing 1 replies (of 1 total)
  • The topic ‘Which of these two WP functions should I use for an image url in functions.php?’ is closed to new replies.