[SOLVED] Problems with dynamic links
I have been trying to replace my hardcoded links with dynamic ones, preparatory to moving hosts.
For example, I am using: Code:
background: #ffffff url(/rogo/httpdocs/wp-content/themes/atahualpa/images/rogo/bg01.jpg); However if I replace it with: Code:
background: #ffffff url(<?php echo get_bloginfo('template_directory'); ?>/images/rogo/bg01.jpg); I have copied the php function into the footer content to test it, and when used there it comes up with the right directory - http:// localhost/rogo/httpdocs/wp-content/themes/atahualpa (the extra space is just to stop this post coding the link automatically as a URL). But for some reason the function doesn't seem to be working correctly when I put it in a link. What am I doing wrong? All suggestions welcome! |
hold off on using 3.6 for the moment. you can manual install 3.5.3 (http://forum.bytesforall.com/showthread.php?t=8520) and activate it (having it in a folder called atahualpa353) and have 36 installed at the same time. Just switchback to 3.5.3 till the issue with 3.6 is figured out.
|
Aha, I hadn't realised it was a 3.6 related problem. Gone back to 3.5.3 as suggested and it works perfectly.
Thanks :) |
All times are GMT -6. The time now is 07:17 PM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.