davidjmorin Posted March 6, 2012 Share Posted March 6, 2012 Hi all Im using wordpress for my site with custom sidebar boxes. The code is like this: <h3> <?php _e("About Me", ''); ?> </h3> <div class="box"> <?php _e("",'index'); ?> </div> What i want to do is add my fb into that. so like so <h3> <?php _e("About Me", ''); ?> </h3> <div class="box"> <?php _e("<div class="fb-activity" data-site="http://facebook.com/davidjmorin" data-width="300" data-height="300" data-header="true" data-recommendations="false"></div>",'index'); ?> </div> But that throws errors any help is much appreciated Quote Link to comment https://forums.phpfreaks.com/topic/258399-help-with-putting-facebook-stream-in-special-php-code/ Share on other sites More sharing options...
ManiacDan Posted March 6, 2012 Share Posted March 6, 2012 What does the documentation say about this? Why do you believe data-site= is a valid <div> attribute? Quote Link to comment https://forums.phpfreaks.com/topic/258399-help-with-putting-facebook-stream-in-special-php-code/#findComment-1324543 Share on other sites More sharing options...
davidjmorin Posted March 6, 2012 Author Share Posted March 6, 2012 just incase anyone was wondering.. here is how its done <h3> <?php _e("About Me", ''); ?> </h3> <div class="box"> <?php _e(include('facebook.html')); ?> </div> and data-div kind sir is what facebook uses. but thank you so much for your helpful response Quote Link to comment https://forums.phpfreaks.com/topic/258399-help-with-putting-facebook-stream-in-special-php-code/#findComment-1324546 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.