How do I create a dynamically-updated copyright statement?

Here’s what I use: function oenology_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 WHERE post_status=”publish” “); $output=””; if($copyright_dates) { $copyright = “© ” . $copyright_dates[0]->firstdate; if($copyright_dates[0]->firstdate != $copyright_dates[0]->lastdate) { $copyright .= ‘-‘ . $copyright_dates[0]->lastdate; } $output = $copyright; } return $output; } Of course, if there’s a … Read more

WordPress themes under GPL license

The GPL absolutely does not preclude selling code, for cost. In fact, the terms of the license explicitly allow for selling of code. The GPL merely allows the end user, whether he received the GPL-licensed code for free or for cost, to use the code however he likes, to redistribute the code, to modify the … Read more

Copyright info change in Theme Child PHP

You need to modify 2 functions not only 1 in your functions.php: /** * Function to display footer content. * * @since 1.1.24 * @access public */ //ADDED CHILD TO THE END OF THE NAME function hestia_the_footer_content_child() { /** * Array holding all registered footer widgets areas */ $hestia_footer_widgets_ids = array( ‘footer-one-widgets’, ‘footer-two-widgets’, ‘footer-three-widgets’ ); … Read more

tech