Wordpress Themes - WP Forum at BFA
Click here to register or to donate.
Auto self-registration is not available here - far too many spammers. This forum has many, many backlinks and because of that there is an intense desire among spammers to drop their links here.

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Center area post/pages » Comments, trackbacks & pings »

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


  #1  
Old Apr 18, 2011, 10:37 AM
JonRouston
 
15 posts · Dec 2010
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
  #2  
Old Apr 18, 2011, 03:19 PM
lmilesw's Avatar
lmilesw
 
10,174 posts · Jul 2009
Central New York State USA
Where did you get that code? Have you check the plugin authors site?
__________________
~Larry (CNY Web Designs)
This site should be a membership site since it so full of good stuff.
Please consider donating which gives you access to even more good stuff.
  #3  
Old Apr 18, 2011, 03:31 PM
juggledad's Avatar
juggledad
 
23,686 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
In this case you should be using get_permalink() but you may have an issue with the '#' since it is a special character
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #4  
Old Apr 19, 2011, 08:02 AM
JonRouston
 
15 posts · Dec 2010
Quote:
Originally Posted by lmilesw
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?
  #5  
Old Apr 19, 2011, 08:25 AM
JonRouston
 
15 posts · Dec 2010
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>'; ?>
  #6  
Old Apr 19, 2011, 08:39 AM
JonRouston
 
15 posts · Dec 2010
Aha! Removed the trailing slash in permalink settings

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
comments appear when i edit/change copy wppg Comments, trackbacks & pings 9 Aug 14, 2010 07:01 AM
how to change the # of recent comments that show up? macgig Page & Category Menu Bars 4 Jun 16, 2010 09:49 PM
[SOLVED] Change width of comments. Harald Comments, trackbacks & pings 3 Mar 14, 2010 09:45 AM
How to change the way comments replies are displayed eftim Forum How-To 10 Jun 11, 2009 04:42 PM


All times are GMT -6. The time now is 09:33 AM.


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