Where can I include auto calendar PHP code on my site

Asked By 50 points N/A Posted on -
qa-featured

Hi , 

I have downloaded the auto calendar PHP code to generate my calendar on my website.

But I can not display date on all web pages. It was displaying the wrong date from 1 web page to another webpage and when generating I got some errors. 

So Where I can download a suitable auto calendar PHP generator to generate the auto calendar PHP.

On my site, I wanted to display the current date on all the web pages and database pages. 

Where I can include the auto calendar PHP code?

SHARE
Answered By 0 points N/A #136686

Where can I include auto calendar PHP code on my site

qa-featured

Hello,

Below is a code that would display the current date on all the pages.

<?php get_header();?>
<div id="main">
<div id="content">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div class="post" id="post-<?php the_ID(); ?>">
<p class="date">
<span class="month">
<?php echo date('M') ?>
</span>
<span class="day">
<?php echo date('d') ?>
</span>
<span class="year">
<?php echo date('Y') ?>
</span>
</p>

HTH!

Login/Register to Answer

Related Questions