function create_copyright() { $all_posts = get_posts( 'post_status=publish&order=ASC' ); $first_post = $all_posts[0]; $first_date = $first_post->post_date_gmt; _e( 'Copyright © ' ); if ( substr( $first_date, 0, 4 ) == date( 'Y' ) ) { echo date( 'Y' ); } else { echo substr( $first_date, 0, 4 ) . "-" . date( 'Y' ); } echo ' ' . get_bloginfo( 'profnaeem' ) . ' '; _e( 'All rights reserved.' ); }

Contact Us

Scroll to Top