chevron-left chevron-right

Piotr Nalepa Frontend, architecture and AI

[WordPress][PHP] Jak ustawić dynamiczny podpis w stopce?

This version
blog.piotrnalepa.pl/2009/07/19/wordpressphp-jak-ustawic-dynamiczny-podpis-w-stopce
Published
Author
, Staff Software Engineer
Categories
PHP, Wordpress
Feedback
Write to me · Post on X

This post is 17 years old. Browsers and tools may have changed since then, so check the code against current documentation before you use it.

Dzisiaj zaprezentuję Wam sposób na dynamiczny podpis w stopce szablonu w systemie CMS WordPress.
Na pewno wiele razy widzieliście podpis w stylu "© 2009 - Blog". Jest to bardzo fajna sprawa i może być generowana automatycznie. Nie trzeba pamiętac o tym, by w kązdym nowym roku zmienić stopkę w szablonie.

Kod wygląda następująco:

Example 1HTML
 
 
   &copy; <?php echo date("Y"); echo " "; echo bloginfo('name'); ?>

I to jest cały kod jaki jest potrzebny do tak fajnej rzeczy. Metoda bloginfo() pobiera tytuł bloga z: Ustawienia -> Ogólne.

Share
Feedback

About the author

Staff Software Engineer

I've been writing this blog since 2009 and building for the web professionally for 14 years. Today I lead the frontend of the Cosmos platform at Bishop Fox, where I've been since day one of the project. Before that I worked at OLX, KUDO, Auto1 and eZ Systems. Here I write about what I've learned in practice: JavaScript, TypeScript, React, CSS and frontend architecture. I've also spoken at conferences across Poland and Europe. Got a question or an idea for a post? Let me know!