How to display Ultimate Facebook Comments in a popup box.
WPMU DEV Community
How to display Ultimate Facebook Comments in a popup box.
Elite
6 pointsGetting my WPMU DEV WingsI'm new here
Taltin
Member
—
27th January 2012 22:31
So, I've placed the following line inside the loop, to display a link to each post's facebook comments.
<a href="<?php comments_link(); ?>"><?php comments_number('Be the first to comment!', '1 comment.', '% comments already!'); ?></a>
When I click the link it takes me to the single post page and displays the post content and the facebook comments section at the bottom. But I don't want to display the post content, I just need to display the facebook comments in a separate page.
I tried comments_popup_link and comments_popup_script but they only display default wordpress comments inside the popup.
By the way I'm calling the comments box by using <?php do_action("my_comments");?> function. But the same function doesn't work in a popup or lightbox.
So, I've placed the following line inside the loop, to display a link to each post's facebook comments.
<a href="<?php comments_link(); ?>"><?php comments_number('Be the first to comment!', '1 comment.', '% comments already!'); ?></a>
When I click the link it takes me to the single post page and displays the post content and the facebook comments section at the bottom. But I don't want to display the post content, I just need to display the facebook comments in a separate page.
I tried comments_popup_link and comments_popup_script but they only display default wordpress comments inside the popup.
By the way I'm calling the comments box by using <?php do_action("my_comments");?> function. But the same function doesn't work in a popup or lightbox.
The plugin hasn't been designed to be used in a lightbox, it'd require some custom code to get it to work like that. It sounds like a neat idea though, hope you don't mind me moving this over to the feature suggestion forum to have a look at.
Responses (1)
WPMU DEV Fanatic — 28th January 2012 02:23 #
Hi Taltin,
The plugin hasn't been designed to be used in a lightbox, it'd require some custom code to get it to work like that. It sounds like a neat idea though, hope you don't mind me moving this over to the feature suggestion forum to have a look at.
Anyone else looking for something like this?
-David
Become a member