Skip to main content

Reply To: Facebook Comment box for Category say id 30

ClassiBase classifieds script Forums General help Facebook Comment box for Category say id 30 Reply To: Facebook Comment box for Category say id 30

#1150 Reply

ClassiBase
Keymaster

It seems like facebook comment box will display comments by data-href="http://example.com/comments" value. So to display comments by category you have to provide category url there. To generate category url on ad.php file then use this function.

data-href="<?php echo Category::url($ad->Category);?>"

if you want to display comments by category and location then use following code:

data-href="<?php echo Category::url($ad->Category,$ad->Location);?>"

  • Classifieds Business Newsletter

    Get discounts and tips about growing your classifieds website.

    Subscribe