January 17, 201313 yr Hello, using facebooks comment plugin for my cms and have an error. How do i set the page url to be the current page url so that all the comments etc are unique to each different product. So this is what it looks like: <div class="fb-comments" data-href="PAGEURL" data-width="1000" data-num-posts="20"></div> </div> I tried using this: <div class="fb-comments" data-href="<?php echo curPageURL();?>" data-width="1000" data-num-posts="20"></div> </div> But it shows no plugin at all with that and the curPageURL functions works fine else where. I also tried this: My page url is e.g. http://www.damnthatsgenius.com/moreinfo.php?title=$title&more=More+Info so tried this: <div class="fb-comments" data-href="<?php echo 'http://www.damnthatsgenius.com/moreinfo.php?title=$title&more=More+Info';?>" data-width="1000" data-num-posts="20"></div> But still no plugin showing. Any ideas?
January 17, 201313 yr do you need the echo? and/or why not just insert the variable returned from the function?
January 17, 201313 yr Author Using <?php curPageURL();?> Like that you mean? It shows the plugin, but puts it into some sort of compatibility mode :/
Create an account or sign in to comment