Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

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, 09: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, 02:19 PM
lmilesw's Avatar
lmilesw
 
10,176 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, 02:31 PM
juggledad's Avatar
juggledad
 
23,765 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, 07: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, 07: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, 07:39 AM
JonRouston
 
15 posts · Dec 2010
Aha! Removed the trailing slash in permalink settings

Bookmarks



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


All times are GMT -6. The time now is 04:50 AM.


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