Skip to content

Instantly share code, notes, and snippets.

.authcomment {
background-color: #B3FFCC !important;
}
!-- Facebook Open Graph Tags --
meta property= fb:app_id content= 177594542288018 /
!-- End Facebook Open Graph Tags --
?php if( comments_open() ): ?
div id= facebook-comments
h3 id= reply-title Leave a Reply /h3
fb:comments href= ?php the_permalink(); ? num_posts= 8 width= 610 /fb:comments
/div
?php endif; // end comments_open() ?
!-- Facebook JavaScript SDK --
div id="fb-root /div
script
window.fbAsyncInit = function() {
FB.init({appId: '177594542288018', status: true, cookie: true,
xfbml: true});
};
(function() {
var e = document.createElement('script'); e.async = true;
e.src = document.location.protocol +
?php
/*
Template Name: Contact
*/
?
?php
if(isset($_POST['submitted'])) {
if(trim($_POST['contactName']) === ”) {
$nameError = ‘Please enter your name.’;
$hasError = true;
<!DOCTYPE html>
<html>
<body>
<h1>My first PHP page</h1>
<?php
echo "Hello World!";
?>