Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Comments, trackbacks & pings (http://forum.bytesforall.com/forumdisplay.php?f=19)
-   -   [SOLVED] Can I change where %comments refers to? (http://forum.bytesforall.com/showthread.php?t=13826)

JonRouston Apr 18, 2011 09:37 AM

[SOLVED] Can I change where %comments refers to?
 
Hi,

In the posts bylines etc. options I am using the %comments option to refer the user to the comments section.

However, I would like to use the facebook comments for wordpress plugin, which uses the div 'fbcomments' rather than atahualpa's 'respond'

Is there any way of changing where the %comments otion refers to?

I tried to use
Code:

<?php the_permalink(); ?> #fbcomments
but the code seems to get scrambled, probably because I'm using it wrong

Thnks
Jon

lmilesw Apr 18, 2011 02:19 PM

Where did you get that code? Have you check the plugin authors site?

juggledad Apr 18, 2011 02:31 PM

In this case you should be using get_permalink() but you may have an issue with the '#' since it is a special character

JonRouston Apr 19, 2011 07:02 AM

Quote:

Originally Posted by lmilesw (Post 63437)
Where did you get that code? Have you check the plugin authors site?

The code in the code box - I just made it up! The Div reference I got from looking at the source


Quote:

In this case you should be using get_permalink() but you may have an issue with the '#' since it is a special character
Yes, I was having problems with the # - is there any way around it? It seems to be ignored I'm guessing because it's the escape character?

JonRouston Apr 19, 2011 07:25 AM

OK I think I might have sorted it but still having a few issues. This is the code I'm using but I'm getting an extra / i.e. mysite.com/permalink/#div when I think I want mysite.com/permalink#div

Code:

<?php echo '<a href="%permalink%'.getH().'fbcomments"><img src="IMAGE URL"></a>'; ?>

JonRouston Apr 19, 2011 07:39 AM

Aha! Removed the trailing slash in permalink settings


All times are GMT -6. The time now is 08:32 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.