![]() |
![]() |
![]() |
||||
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
Let slip the dogs of war.
Industry Role:
Join Date: Jan 2003
Location: Bermuda
Posts: 17,263
|
PHP / Wordpress Pros .. Please help!
I'm using the following on the single.php template file for post navigation:
<?php next_post_link('%link', '<img src="/images/next.gif" width="75" height="21" border="0">', FALSE); ?> Works fine, but what I actually want to do is insert <?php bloginfo('template_directory'); ?> before the /images/next.gif. I know I can't simply do: <?php next_post_link('%link', '<img src="<?php bloginfo('template_directory'); ?>/images/next.gif" width="75" height="21" border="0">', FALSE); ?> So hook can someone hook me up with the right format please? I don't want to learn php I just want to finish this damn template I started. :P
__________________
. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
Confirmed User
Join Date: Sep 2007
Location: Somewhere over the rainbow.... ICQ-474167022
Posts: 314
|
Why don't you just insert the URL of your template's directory?
ie: <?php next_post_link('%link', '<img src="http:// www . domain . com /wp-content/ themes/ template/ images/ next.gif" width="75" height="21" border="0">', FALSE); ?> |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
Let slip the dogs of war.
Industry Role:
Join Date: Jan 2003
Location: Bermuda
Posts: 17,263
|
Yes that will work of course, however I've painfully learned to do everything correctly while building my first theme and since everywhere else all the links and what not are dynamic, I'd kind of like to learn how to do this properly too.
__________________
. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
Confirmed User
Join Date: Mar 2006
Location: San Diego, CA
Posts: 1,421
|
What about:
<?php next_post_link('%link', '<img src="' . bloginfo('template_directory') . '/images/next.gif" width="75" height="21" border="0">', FALSE); ?>
__________________
![]() Naughty America - Director of Technology It's a CELEBRATION bitches!! For the hottest content promote Naughty America! ![]() swish at naughtyamerica dot com | ICQ: 226 737 620 | See Who I Am At AdultWhosWho.com! |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 |
Registered User
Join Date: Nov 2007
Location: /home/
Posts: 9
|
![]() try swishs` version... should work
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 | |
Let slip the dogs of war.
Industry Role:
Join Date: Jan 2003
Location: Bermuda
Posts: 17,263
|
Quote:
Anyone else?
__________________
. |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#7 |
Confirmed User
Join Date: Jan 2007
Posts: 190
|
try
Code:
<?php $image = '<img src="'.bloginfo("template_directory").'/images/next.gif" width="75" height="21" border="0">'; next_post_link('%link', $image, FALSE); ?> |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#8 |
Let slip the dogs of war.
Industry Role:
Join Date: Jan 2003
Location: Bermuda
Posts: 17,263
|
Unfortunately that does the same thing as the earlier code. There's something peculiar about this Wordpress function.
Anyone familiar with it?
__________________
. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#9 |
Confirmed User
Join Date: Aug 2006
Posts: 7,875
|
<?php next_post_link('%link', '<img src=<?php bloginfo('template_directory'); ?>/images/next.gif width=75 height=21 border=0>', FALSE); ?>
__________________
![]() Join the fucking best in big tit sponsors!!! |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#10 |
Confirmed User
Join Date: Aug 2006
Posts: 7,875
|
possibly the " " symbols were messing it up ?
__________________
![]() Join the fucking best in big tit sponsors!!! |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#11 |
Confirmed User
Join Date: Jul 2007
Posts: 111
|
Use this instead:
<?php next_post_link('%link', '<img src="' . get_bloginfo('template_directory') . '/images/next.gif" width="75" height="21" border="0">', FALSE); ?> More help: http://codex.wordpress.org/Template_Tags/get_bloginfo
__________________
![]() Sig too big??? ExtraordinaryWay Exclusive Custom Ads, Banners and other Ads Adult Design, Tour Pages, Affiliate Design Cool Custom WordPress Themes w install Flash Video Players Afiiliate code ready custom flash video players!!! Make a wish! ICQ: 190430478 |
![]() |
![]() ![]() ![]() ![]() ![]() |