Anyone can tell me what's the difference between template_url and _directory'? (2 posts)

  1. bigtotoro
    Posted 8 years ago #

    i am wondering what's the difference between bloginfo('template_directory' ) and bloginfo('template_url' ).i run both of them in one page and get the same address.

    well,i can't firgue out if i want to use a picture in my template,which one will work in all conditions?

    'template_url' - URL for template in use.
    'template_directory' - URL for template's directory.

    besides,i think both of them are the same,any one can correct me ?thx very very very much!

  2. Kafkaesqui

    Posted 8 years ago #

    I assume at first the devs had plans to differentiate them (how? no idea), but that seems to have gone nowhere so they've remained synonymous values.

    In any case I would stick with 'template_url' just because it reads better. ;)

Topic Closed

This topic has been closed to new replies.

About this Topic