badget

Biggest Sale! Special Offer!

Get 30% discount on all of our single themes with this coupon code: #30%SALE

Hurry up! *Limited time offer*

Reply To: PHP code for copyright year doesn't work

#28012
Alfred
Participant

OK. Finally got it with the proper PHP punctuation. The last line of code needs to be:

$output = '<div class="copyright">'.'Copyright &copy; '.attitude_the_year().' Daniel Corbeil | <a href="http://danielcorbeil.com/contact/">Contact</a> '.'</div><!-- .copyright -->';
   echo do_shortcode( $output );
}

Problem solved.