How to Display a Dynamics Date Copyright


Sponsored Links






Have you ever seen, some time website has Copyright on the footer? Example on WordPress Tricks Copyright © 2010 – WordPress Tricks & Tips is proudly powered by WordPress, On this tutorial I will show you How to Create and Display a Dynamics Date Copyright in WordPress. All need to do only writen a functions in your theme functions.php and use Add Filter or manually insert code on your footer.

How to Display a Dynamics Date Copyright

How to Display a Dynamics Date Copyright

Write down Dynamics Date Copyright function below

<?php // display range of dates for copyright @ WPTricks.net
function do_copyright() {
	global $wpdb;
	$copyright_dates = $wpdb->get_results("
		SELECT
			YEAR(min(post_date_gmt)) AS firstdate,
			YEAR(max(post_date_gmt)) AS lastdate
		FROM
			$wpdb->posts
	");
	if($copyright_dates) {
		$copyright = "Copyright &copy; " . $copyright_dates[0]->firstdate;
		if($copyright_dates[0]->firstdate != $copyright_dates[0]->lastdate) {
			$copyright .= '-' . $copyright_dates[0]->lastdate;
		}
		echo $copyright;
	}
}
add_filter('wp_footer', 'do_copyright');
?>

On the code above the functions will be added automatically on your wp_footer(), but if you want manually added, just remark add_filter function and add manually do_copyright() in your footer.php. Thanks for DigWP to share this code and we hope tutorial to display a dynamics date range copyright work on you…

Subscribe to Full RSS Feed

RSS FeedIf you thing this article useful, please consider subscribing to our RSS Feed or e-mail updates and stay updated with us. You can also follow @WPTricksNet on twitter for latest updates.

About WP Tricks

We are WordPress Family, we collected and writed useful tips and tricks for you WordPress. We share it for you...

Related Tips and Trick from Local Data and on The Net

How To Add a Copyright Notice to Copied Text on WordPress

For some reason, we want to added extra copyright information, when some reader or internet user copy our content. This code using Pure JavaScript and written by Batovasan on this post. I will try to rewrite this code on this … Read More

How To Create “Dynamics Statics” Pages

There are so many WordPress Tricks that we can apply. In our current section we will show you, how to create "Dynamics" "Statics" Pages in WordPress. That's I mean on this point is simple. We will generated semi automatics pages … Read More

How To Display Recently Registered Users on WordPress

With little bit functions Display Recently Registered Users on WordPress with Gravatar is easy, we only need to write down little bit of code and the result will be displayed. This code is original resource from WP Recipes, we only … Read More

How To Display Content for Admin Only

Display Specific Content for Admin Only in WordPress can be done easily, all need to do just write some if else statement with same parameter. On this example I will show you how to display simple stats from WordPress and … Read More

How To Display Custom Content to Search Engine Visitors

There are so many WordPress blog, some of them added unique features, right now I will show you how to display custom content to Search Engine visitors only, You can replace what do you want to be added on Search … Read More

How To Display Twitter counter in Text

Update: Better Code Display Twitter Counter Text using WordPress Api Display Twitter Counter in Text is easily in WordPress with PHP code, all need to do just write down some PHP Script in our wordpress theme, we can write it … Read More

date format France DD-MMMM-YYYY - Microsoft Dynamics AX

Description *** Axapta cannot display date date format France DD-MMMM-YYYY - Microsoft Dynamics AX Copyright © 2012 vBulletin Solutions read more

Source: http://techstack.com/forum/microsoft-dynamics-ax/59534-date-format-france-dd-mmmm-yyyy.html

The Dynamics GP Blogster: Displaying Hijri dates in Microsoft

dates -- in Microsoft Dynamics GP. It has been among The Hijri calendar is used to date events and Global Business site and their content are all copyright read more

Source: http://dynamicsgpblogster.blogspot.com/2009/02/displaying-hijri-dates-in-microsoft.html

The Dynamics GP Blogster: User date rollover message not

at one of his clients would not display the Since the Dynamics GP user date is managed by the user, the site and their content are all copyright of read more

Source: http://dynamicsgpblogster.blogspot.com/2009/08/user-date-rollover-message-not.html

Microsoft Dynamics CRM 2011 Readme

An updated time in a Date and Time field cannot be The workaround to get a sub-grid or chart to display Copyright. This document is provided "as-is". Information and read more

Source: http://rc.crm.dynamics.com/rc/2011/en-us/on-prem/5.0/readme.htm

General Dynamics Itronix Newer Driver Selection Display

General Dynamics Itronix Product Driver Selection Display EFFECTIVE DATE: 02/06/2007 Site Map | Copyright © 2012 General Dynamics Itronix read more

Source: http://www.gd-itronix.com/index.cfm?page=Drivers:Display&recid=3001&product_choice=IX350&os_choice=Windows%20Vista&is_old=0


2 Responses to How to Display a Dynamics Date Copyright

  1. redlex says:

    This collection shows just how versatile wordpress is thanks to the imagination of many designers

  2. Pingback: The Creative Solution to Insert Google Analytics on WordPress | WordPress News Wire

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>