• hi!
    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!

Viewing 1 replies (of 1 total)
  • 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. ;)

Viewing 1 replies (of 1 total)
  • The topic ‘Anyone can tell me what’s the difference between template_url and _directory’?’ is closed to new replies.