Trusted WordPress tutorials, when you need them most.
Beginner’s Guide to WordPress
WPB Kupası
25 Million+
Websites using our plugins
16+
Years of WordPress experience
3000+
WordPress tutorials
by experts

WordPress Altbilgisine Dinamik Telif Hakkı Tarihi Ekleme

Editoryal Not: WPBeginner üzerindeki ortak bağlantılardan komisyon kazanıyoruz. Komisyonlar, editörlerimizin görüşlerini veya değerlendirmelerini etkilemez. Editoryal Süreç hakkında daha fazla bilgi edinin.

WordPress altbilginize dinamik bir telif hakkı tarihi mi eklemek istiyorsunuz?

Telif hakkı tarihi eski olan bir web sitesi profesyonelce görünmeyebilir. Sitenizin altbilgisine dinamik bir telif hakkı tarihi eklemek, ziyaretçilere web sitenizin güncel olduğunu ve düzenli olarak bakımının yapıldığını gösterir.

Bu makalede, WordPress web sitenizin altbilgisine nasıl kolayca dinamik bir telif hakkı tarihi ekleyebileceğinizi göstereceğiz.

Adding dynamic copyright date in WordPress footer

Telif hakkı tarihi genellikle WordPress web sitenizin içeriğinin, tasarımının ve kodunun telif hakkı yasalarıyla korunduğu cari yılı veya yıl aralığını kapsar.

Web sitenizdeki telif hakkı tarihi güncel olmalıdır, ancak bunu manuel olarak güncellemek zaman alır ve bunu yapmayı unutabilirsiniz.

İşte bu noktada dinamik bir telif hakkı tarihi yardımcı olabilir. Tarihin doğru olmasını ve farklı ülkelerin telif hakkı yasalarını karşılamasını sağlamak için otomatik olarak güncellenecektir.

Aynı zamanda içeriğinizin telif hakkı ihlali ve intihalden korunmasına da yardımcı olur.

Ayrıca, güncellenmiş bir telif hakkı tarihi, arama motorlarına sitenizin bakımlı ve aktif olduğunu gösterir. Bu, arama motoru sıralamalarını iyileştirmeye ve web sitenize daha fazla trafik çekmeye yardımcı olabilir.

Bu makalede, WordPress altbilgisine nasıl kolayca dinamik bir telif hakkı tarihi ekleyebileceğinizi göstereceğiz. Kullanmak istediğiniz yönteme atlamak için aşağıdaki hızlı bağlantıları kullanabilirsiniz:

WordPress blogunuzun başlangıcından içinde bulunduğunuz yıla kadar tüm yılları kapsayan dinamik bir telif hakkı tarihi oluşturmak istiyorsanız bu yöntem tam size göre. En eski gönderinizin ve en yeni gönderinizin yayınlanma tarihini kullanarak çalışır.

WordPress altbilginize dinamik bir telif hakkı tarihi eklemek için, birçok eğitim size temanızın functions.php dosyasına özel kod eklemenizi söyleyecektir. Ancak kodu yazarken yapacağınız en küçük bir hata web sitenizi bozabilir.

Bu yüzden piyasadaki en iyi WordPress kod parçacıkları eklentisi olan WPCode‘u kullanmanızı öneririz. Web sitenize kod eklemenin en kolay ve en güvenli yoludur.

Öncelikle WPCode eklentisini yüklemeniz ve etkinleştirmeniz gerekecektir. Daha fazla talimat için, bir WordPress eklentisinin nasıl kurulacağına ilişkin başlangıç kılavuzumuza göz atmak isteyebilirsiniz.

Not: Bu eğitim için ücretsiz WPCode eklentisini de kullanabilirsiniz. Ancak, Pro sürümüne yükseltmek size kod parçacıkları, akıllı koşullu mantık ve daha fazlasından oluşan bir bulut kütüphanesine erişim sağlayacaktır.

Etkinleştirmenin ardından, WordPress yönetici kenar çubuğundan Kod Parçacıkları ” + Parçacık Ekle sayfasını ziyaret etmeniz yeterlidir.

Buradan, ‘Özel Kodunuzu Ekleyin (Yeni Snippet)’ seçeneğine gidin ve altındaki ‘Snippet Kullan’ düğmesine tıklayın.

Add new snippet

Bu sizi kod parçacığınız için bir ad yazarak başlayabileceğiniz ‘Özel Snippet Oluştur’ sayfasına yönlendirecektir. Bu adın ön uçta görüntülenmeyeceğini ve yalnızca tanımlama amacıyla kullanılacağını unutmayın.

Bundan sonra, sağ köşedeki açılır menüden Kod Türü olarak ‘PHP Snippet’i seçmelisiniz.

Choose PHP as code type for the dynamic copyright date code

Bunu yaptıktan sonra, aşağıdaki kodu kopyalayıp ‘Kod Önizleme’ kutusuna yapıştırın:

if ( ! function_exists( 'wpb_copyright' ) ) {
	function wpb_copyright() {
		// Cache the output so we don't have to run the query on every page load.
		$output = get_transient( 'wpb_copyright_text' );
		if ( false !== $output ) {
			// Return the cached output.
			return $output;
		}
		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 ) {
			$output = '© ' . $copyright_dates[0]->firstdate;
			if ( $copyright_dates[0]->firstdate !== $copyright_dates[0]->lastdate ) {
				$output .= '-' . $copyright_dates[0]->lastdate;
			}
			// Set the value as a transient so we only run the query 1x per day.
			set_transient( 'wpb_copyright_text', $output, DAY_IN_SECONDS );
		}

		return $output;
	}
}

echo wpb_copyright();

Etkinleştirildikten sonra, bu kod otomatik olarak verileri getirecek ve web sitenizdeki en eski ve en yeni gönderilere göre telif hakkı tarihinizi görüntüleyecektir.

Ardından, ‘Ekleme’ bölümüne gidin ve ‘Kısa Kod’ yöntemini seçin. Bu yöntemi kullanıyoruz çünkü özellikle WordPress altbilgisine kod eklemek istiyoruz.

Use the shortcode method

Son olarak, en üste geri gidin ve ‘Etkin Değil’ anahtarını ‘Etkin’ olarak değiştirin.

Bunu yaptıktan sonra, ayarlarınızı kaydetmek için ‘Snippet’i Kaydet’ düğmesine tıklamanız yeterlidir.

Save the code snippet for adding dynamic copyright date

Şimdi, ‘Ekleme’ bölümüne geri dönmeniz ve yanındaki ‘Kopyala’ düğmesine tıklayarak kısa kodu kopyalamanız gerekir.

Kod parçacığını etkinleştirip kaydedinceye kadar kısa kodu kopyalayamayacağınızı unutmayın.

Copy the shortcode for the dynamic copyright date

Bir Widget Kullanarak WordPress Altbilgisine Dinamik Telif Hakkı Tarihi Ekleme

Şimdi kısa kodu WordPress altbilginize eklemeniz gerekiyor. Tam site düzenleyicisi olmayan klasik bir tema kullanıyorsanız bu yöntem tam size göre.

Kısa kodu kopyaladıktan sonra, WordPress yönetici kenar çubuğundan Görünüm ” Widget ‘lar sayfasına gidin.

Buradan ‘Altbilgi’ sekmesine gidin ve sekmeyi genişletin.

Bu eğitim için Hestia Pro temasını kullanıyoruz. Kullandığınız temaya bağlı olarak, widget sayfanız biraz farklı görünebilir.

Ardından, ekranın sol üst köşesindeki ‘Blok Ekle’ (+) düğmesine tıklamanız ve Kısa Kod bloğunu aramanız gerekir.

Bulduktan sonra, bloğu ‘Altbilgi’ sekmesine ekleyin ve ardından WPCode kısa kodunu içine yapıştırın.

Add shortcode into the footer tab

Son olarak, değişikliklerinizi kaydetmek için en üstteki ‘Güncelle’ düğmesine tıklayın.

Şimdi, dinamik telif hakkı tarihini iş başında görmek için web sitenizi ziyaret edebilirsiniz.

Preview for dynamic copyright date in WordPress footer

Blok Tabanlı Temaya Dinamik Telif Hakkı Tarihi Ekleme

WordPress web sitenizde blok tabanlı bir tema kullanıyorsanız, telif hakkı kısa kodunu altbilgiye eklemek için bu yöntemi kullanabilirsiniz.

İlk olarak, WordPress panosundan Görünüm ” Editör sayfasını ziyaret etmeniz gerekir. Bu, ekranınızda tam site düzenleyicisini başlatacaktır.

Buradan, Altbilgi bölümünü seçin ve ardından ekranın sol üst köşesindeki ‘Blok Ekle’ (+) düğmesine tıklayın.

Ardından, Kısa Kod bloğunu bulup altbilgide tercih ettiğiniz alana eklemeniz yeterlidir.

Bunu yaptıktan sonra, dinamik telif hakkı tarihi kısa kodunu bloğa yapıştırın.

Add copyright date shortcode into the FSE

Son olarak, ayarlarınızı kaydetmek için en üstteki ‘Kaydet’ düğmesine tıklamayı unutmayın.

Artık dinamik telif hakkı tarihini kontrol etmek için web sitenizi ziyaret edebilirsiniz.

Copyright date in fse

Web sitenizde kod kullanmak istemiyorsanız, bu yöntem tam size göre.

İlk olarak, Smart Copyright Year eklentisini yüklemeniz ve etkinleştirmeniz gerekecektir. Ayrıntılar için WordPress eklentisi yükleme kılavuzumuza göz atabilirsiniz.

Etkinleştirmenin ardından eklenti, telif hakkı tarihiniz için verileri otomatik olarak getirecektir. Eklentinin yalnızca geçerli yılı gösterdiğini ve sitenin kullanıldığı yıl aralığını göstermediğini unutmayın.

Telif hakkı tarihini görüntülemek için şimdi web sitesi altbilgisine bir kısa kod eklemeniz gerekecek.

Klasik Temaya Dinamik Telif Hakkı Tarihi Ekleme

Tam site düzenleyicisini kullanmayan klasik bir tema kullanıyorsanız, bu yöntemi kullanabilirsiniz.

İlk olarak, WordPress yönetici kenar çubuğundan Görünüm ” Widget ‘lar sayfasını ziyaret etmelisiniz. Oraya geldiğinizde, ‘Altbilgi’ sekmesine gidin ve genişletin.

Bu eğitim için Hestia Pro temasını kullanıyoruz, bu nedenle widget’larınız kullandığınız temaya bağlı olarak biraz farklı görünebilir.

Ardından, ekranın sol üst köşesindeki ‘Blok Ekle’ (+) düğmesine tıklayın ve Kısa Kod bloğunu bulun.

Bloğu ‘Footer’ sekmesine ekleyin ve ardından telif hakkı tarihini aşağıdaki gibi görüntülemek için aşağıdaki kısa kodu kopyalayıp yapıştırın:

[yıl]

Add plugin shortcode in the footer widget

Son olarak, değişikliklerinizi kaydetmek için en üstteki ‘Güncelle’ düğmesine tıklayın.

Şimdi, dinamik telif hakkı tarihini iş başında görmek için web sitenizi ziyaret edebilirsiniz.

Copyright date preview

Blok Tabanlı Temaya Dinamik Telif Hakkı Tarihi Ekleme

Tam site düzenleyicisine sahip blok tabanlı bir tema kullanıyorsanız, dinamik telif hakkı kısa kodunu bu yöntemle ekleyebilirsiniz.

WordPress yönetici kenar çubuğundan Görünüm ” Düzenleyici sayfasına gitmelisiniz.

Buraya geldiğinizde, ‘Altbilgi’ bölümünü seçin ve ardından ekranın sol üst köşesindeki ‘Blok Ekle’ (+) düğmesine tıklayın. Ardından, Kısa Kod bloğunu bulun ve ekleyin.

Bundan sonra, web sitenizde telif hakkı tarihini görüntülemek için aşağıdaki kısa kodu bloğa ekleyin:

[yıl]

Add plugin shortcode

Son olarak, ayarlarınızı kaydetmek için en üstteki ‘Kaydet’ düğmesine tıklayın.

Şimdi, dinamik telif hakkı tarihini iş başında görmek için web sitenizi ziyaret edebilirsiniz.

Copyright date preview with plugin

Umarız bu makale WordPress altbilgisine dinamik telif hakkı tarihlerinin nasıl ekleneceğini öğrenmenize yardımcı olmuştur. WordPress’te dinamik içeriğin nasıl ekleneceğine ilişkin eğitimimize ve sitenizi büyütmek için en iyi WordPress eklentilerine ilişkin en iyi seçimlerimize de göz atmak isteyebilirsiniz.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

Açıklama: İçeriğimiz okuyucu desteklidir. Bu, bazı bağlantılarımıza tıklarsanız komisyon kazanabileceğimiz anlamına gelir. WPBeginner'ın nasıl finanse edildiğini, neden önemli olduğunu ve nasıl destek olabileceğinizi görün. İşte editoryal sürecimiz.

Avatar

Editorial Staff at WPBeginner is a team of WordPress experts led by Syed Balkhi with over 16 years of experience in WordPress, Web Hosting, eCommerce, SEO, and Marketing. Started in 2009, WPBeginner is now the largest free WordPress resource site in the industry and is often referred to as the Wikipedia for WordPress.

Ultimate WordPress Araç Kiti

Araç setimize ÜCRETSİZ erişim sağlayın - her profesyonelin sahip olması gereken WordPress ile ilgili ürün ve kaynaklardan oluşan bir koleksiyon!

Reader Interactions

54 yorumBir Cevap Bırakın

  1. Syed Balkhi says

    Hey WPBeginner readers,
    Did you know you can win exciting prizes by commenting on WPBeginner?
    Every month, our top blog commenters will win HUGE rewards, including premium WordPress plugin licenses and cash prizes.
    You can get more details about the contest from here.
    Start sharing your thoughts below to stand a chance to win!

  2. Armando says

    In this article, you are recommending the Auto Copyright Year Updater plugin, but according to WordPress.org, “This plugin hasn’t been tested with the latest 3 major releases of WordPress. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.”

    Do you have another recommendation? Thanks.

  3. Jiří Vaněk says

    Thank you for the article. I only had a tag for the current year on the site, but thanks to your snippet I was able to expand it to include the year the blog started. It looks much better. Good job. Thank you for this little thing, which I would not have figured out on my own, or I would have searched for it for a long time on the Internet and tried different codes.

  4. Moinuddin Waheed says

    Thanks for the code to add for having dynamic date in the copyright.
    it will eliminate the need to manually change the date.
    I was looking for this and will add to my websites.

  5. Yvon says

    I tried to do this as recommended in https://www.wpbeginner.com/glossary/functions-php/): I pasted the code as a snippet in the Code snippet plugin. But I’m not sure what to do next: “add the following code to your theme’s footer.php file where you want to display the date: ”
    I guess I don’t understand how the Code snippet plugin works: where the code is added / how do I address ‘footer.php’>? I tried to just paste the code in the footer, but that didn’t work… Please help this coding-newbie?

  6. Zee Aitch says

    I think we should not waste time reinventing the wheel our self, instead utilizing the available plugins like Automatic Copyrights Shortcode.

    What you think?

    • WPBeginner Support says

      That plugin was not available when this post was created, we will certainly take a look at it

      Yönetici

  7. Def Egge says

    I gave this a try and, for a moment, it appeared to work.

    Clearing the WP cache and reloading the page resulted in the same old “Blah … blah … blah … | Proudly powered by WordPress” footer.

    I no longer see this code snippet in the functions.php file for the ComicPress theme.

    Does it matter WHERE in the functions.php and footer.php files the code snippets are added? If so, it would be a great help to know that.

    Thanks!

  8. Kori says

    Does it have to be a child theme for this to stay in place? I’m on Twenty Seventeen, with no child theme. Do I need to worry about this being overwritten every time I get a WP udpate?

    Appreciate the help so much!

  9. Anna says

    Could someone assist with information on how to add a text after the year? Where in the code should this be placed?

  10. Rishabh says

    After i clicked save on the functions.php. I’m facing a white-screen of death. I also dowloaded the functions.php file but couldn’t find your code there. How do i solve it?

  11. Nikhil says

    I need to change ” Last updated on January 5th, 2016 by Editorial Staff ” this date with current date…

    So which command I have to use…. I had tried this one…

    But I’m getting the same date…

  12. gumusdis says

    Thanks! this is great, i used it on my website
    I added a post for 1 year ago, like 2015 to have more than 1 year. then I realized I could simply write down 2015 in code lol..
    anyway i hope you laughed..

  13. Kyle says

    This is WordPress Beginner!!! Why Don’t You tell the guys where exactly to put the code on PHP file? See lots of people breaking their websites so I would rather not try.

  14. lena woods says

    I added the code to functions, and it completely wiped out my website. Blank screen – when i go to login page and when i simply type in my website URL. what happened? did exactly what was said tot do above :/

  15. Mark Roth says

    I have spent hours over several days trying to find the answer to the following need:

    A blogger’s copyright info is included automatically with each post. The blogger got married and changed her last name. How to get WordPress to use old name in copyright line for posts before wedding date and new name in copyright line for posts after the wedding date?

    I know get_the_date is key, but I don’t know how to write a conditional statement that says if post publication date is before October 1 2009, display maiden name, else display married name.

    (Or, of course, if post publication date is after wedding date, display married name.)

    I’m hoping one of you here will help me with this. Please?

  16. Michaela says

    Hi, I tried to update the functions.php file, but instead I received 500 Error. What shall I do? It does not allow me to access my wordpress account to edit it back…. can you please help me?

  17. Mirco says

    You can also try the Copyright Shortcodes plugin (it’s on the WordPress plugin directory).

    Available shortcodes are: [copyright year=YYYY], [copy], [year], [years by=YYYY list=true/false sep=“, “]

    Cheers,

  18. Brandon Hann says

    This is the code I used for a long time until I realized that the year is pulled based off of GMT, so if you don’t want users in different time zones to see your site’s year change early or late, don’t use this tag…change echo date to echo date_i18n

    For example, when I used the original code, I went to my website on Dec 31st, 2014 at around 6pm PST. My website was already showing the year 2015 because Pacific Standard Time is 8 hours behind GMT.

    With the date_i18n change, your site will show the current year based on the visitor’s timezone instead. For those that are curious, i18n is an abbreviation of “internationalization” because there are 18 letters between the ‘I’ and the ‘N’.

  19. hayward says

    I am having trouble with adding the code to my function.php footer. Now I am getting this error message Parse error: syntax error, unexpected ‘function’ (T_FUNCTION) in /home3/hsp1990/public_html/wp-content/themes/couponpress/functions.php on line 35

    • Rex AZ says

      You should use a child theme rather than working with your parent theme. Just go over to the wordpress codex and source for child theme development. Just create a new functions.php file and a footer.php file in your child theme directory and insert the codes. You are good to go.

  20. Chris says

    Hi,
    how can I modify this code, so that I can have a fix “first date” of “1999”, instead of the date of the first published posting?
    Thanks.

  21. menj says

    I have used the code above, with a slight modification to the comicpress_copyright() function which I renamed to a more generic one.

  22. jrstaples1 says

    Nice tip! I addded this with almost zero coding knowledge. How would I add my site title after the year?

  23. Dominic says

    Something like this might be easier and less intensive.

    <?php
    $year = date('Y');
    if ($year != 2009){
    echo '© 2009 – '.$year.' YourSite.com';
    } else {
    echo '© 2009 YourSite.com';
    }
    ?>

  24. Gary says

    It’s worth pointing out that copyright exists for a number of years from the first time it was published. That means there’s to things to consider:

    1) The visual copyright notice is not necessary under the Berne treaty – it has no standing in law whether you have it on the site or not.

    2) If the site was first published in a certain year, claiming it could be actually published in a later year actually lowers any claim you may have for copyright infringement.

    Also, most visual copyright notices, for what they are worth, also need to put who the copyright is to, after the year(s).
    Finally, it’s typographically correct to use an “en dash” instead of the hyphen-minus character you’ve suggested.

  25. Derek Jensen says

    It surely does bug me when I go to a site and the copyright is out of date but yet they are publishing fresh content.

    This will be a nice dummy factor for that.

    As always I enjoy your guys as a WordPress resource.

Bir Cevap Bırakın

Yorum bırakmayı seçtiğiniz için teşekkür ederiz. Lütfen tüm yorumların yorum poli̇ti̇kasi uyarınca denetlendiğini ve e-posta adresinizin yayımlanmayacağını unutmayın. Ad alanında anahtar kelime KULLANMAYIN. Kişisel ve anlamlı bir sohbet edelim.