When you use the
[smarter-archives] shortcode anywhere in a post or a page, it gets replaced by a listing of every year since you started posting, with a list of links to each month for that year. However, the plugin is smart enough to know if you didn’t create any content in any given month, and doesn’t make a link for that month. See the Screenshots section for an example of it in action.
See the Usage section for a complete list of the arguments the shortcode takes, and how you can use them to customize your archives listing.
The month names are internationalized with the WordPress translation API. A POT file is included, and if you want to translate please feel free to do so and submit a new pull request on GitHub. If you do not know how to use GitHub, you can also contact me directly. Here are the translations that have been done so far:
- Dutch (nl_NL)
- French (fr_FR)
- German (de_DE)
- Italian (it_IT)
- Spanish (es_ES)
- Russian (ru_RU)
The original concept for this plugin comes from a plugin by Justin Blanton.
[smarter-archives] shortcode takes these arguments (default values included):
output) — if it’s set to
output, the plugin prints the listing. Set it to
falseto return the value
smart-archives) — class given to the tag wrapped around the listing (
div) — tag wrapped around the listing
year-link) — class given to each year links
p) — tag around each year group
year_class(default: none) — class for the tag around each year group
:) — value after the year and before the list of months
month-link) — class given to each month link
span) — tag around each month
) — spacer between months
empty-month) — class applied to empty months (can use this to gray them out)
DESC) — order the years are shown in (
There is a function,
get_smarter_archives(), that returns the raw array with the years, months, and post counts. You can use this for ultimate customization.
[smarter-archives order="DESC" after_month="•"]<h3>License</h3> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
A full version of the license is included with the plugin in
- Download the ZIP file and unzip it
- Copy or upload the
smarter-archivesfolder to your plugins folder (usually
- Activate Smarter Archives in the admin
- Put the
[smarter-archives]shortcode where you want the listing to show
No hay valoraciones para este plugin.
Colaboradores y desarrolladores
«Smarter Archives» es un software de código abierto. Las siguientes personas han colaborado con este plugin.Colaboradores
«Smarter Archives» ha sido traducido a 5 idiomas locales. Gracias a los traductores por sus contribuciones.
Traduce «Smarter Archives» a tu idioma.
¿Interesado en el desarrollo?
Revisa el código , echa un vistazo al repositorio SVN o suscríbete al registro de desarrollo por RSS.
Registro de cambios
- Fix issue with setting default options in shortcode
- Updated compatibility up to WordPress 5.5
- Added Russian (ru_RU) translation, thanks to Alexander Tischenko
- Added German (de_DE) translation, thanks to Jay Linski (@jaylinski)
- Updated Italian translation
- Added Dutch (nl_NL) translation, thanks to Micha
- Fixed bug involving extra empty months
- Fixed bug related to the new i18n changes in WordPress 4.0
- Fixed bug relating to an extra quote in month links
- Added French (fr_FR) translation, thanks to Jean-Hugues Roy
This update is optional, the only change is the new French translation.
Also, note that development is now on GitHub. Releases will continue to be pushed through the WP plugin repository, however.
This update is optional for everyone, unless you want the new Italian translation. If not, feel free to skip it.
- New translation: Italian (it_IT) courtesy of Marco Zambianchi
- Only load textdomain if WPLANG is defined AND not empty
- Backend is completely rewritten: only 1 query compared to 12 for every year before (!!)
- Optimizations everywhere
- New option:
year_class(see Usage for more info)
- Updated compatibility to WP 3.8
- Updated es_ES translation to include new strings
- Standardized i18n calls — fully translatable
- Added a POT file for translating
- Added a lang folder
- Spanish (es_ES) translation added — thanks to Andrew Kurtis of WebHostingHub
- New shortcode:
[smarter-archives], see Usage for more details
- Fixed bug:
ordernow actually does something
- Updated WordPress compatibility to 3.5.1
- Updated WordPress compatibility to 3.5
- Main function’s output is now completely customizable
- i18n support added; English domain included
- Smarter Archives is now licensed under the GPL v2 license
- Updated WordPress compatibility to 3.4.2