Šī spraudnis nav atjaunināts vairāk kā divus gadus. Varbūt, tas vairs netiek uzturēts, nesaņemt atbalstu un tam var būt saderības problēmas ar jaunākām WordPress versijām.

Clean My Archives

Apraksts

The Clean My Archives plugin was developed because so many archives plugins were overly complicated. I wanted something extremely simple to use that simply got the job done on my own site’s archives.

Therefore, I created a simple [clean-my-archives] shortcode that you can place on any page (or any shortcode-ready area) and list your post archives by month and year.

This plugin also integrates with WordPress caching plugins. So, long lists of archives can be cached for later use and loaded quickly. If you have many years of blog posts, I highly recommend some sort of persistent caching or paginating your archives (see FAQ).

Professional Support

If you need professional plugin support from me, the plugin author, you can access the support forums at Theme Hybrid, which is a professional WordPress help/support site where I handle support for all my plugins and themes for a community of 75,000+ users (and growing).

Plugin Development

If you’re a theme author, plugin author, or just a code hobbyist, you can follow the development of this plugin on it’s GitHub repository.

Donations

Yes, I do accept donations. If you want to donate, you can do so from my donations page or grab me something from my Amazon Wish List.

I appreciate all donations, no matter the size. Further development of this plugin is not contingent on donations, but they are always a nice incentive.

Ekrānuzņēmumi

  • Screenshot of the plugin in action my archives page.

BUJ

Why was this plugin created?

First and foremost, I wanted a simple archives solution for, what’s now, over 12 years of blog posts. You can check out my archives to see how the plugin performs.

The second reason was to share my solution with other users who want the same simplicity.

How do I use it?

Add the [clean-my-archives] shortcode to a shortcode-ready area, such as the page editor. That’s it. You have nothing more to do.

Of course, there are some other configuration options. Examples follow.

Limit the number of posts with the `limit` parameter:

[clean-my-archives limit=”100″]

Reverse the order with the `order` parameter (default is `DESC`):

[clean-my-archives order=”ASC”]

[clean-my-archives order="DESC"]
Use the `year` parameter to limit to a year:

[clean-my-archives year=”2013″]

Use the `month` parameter to limit by month:

[clean-my-archives month=”12″]

Load specific post types with the `post_type` parameter:

[clean-my-archives post_type=”post”]

[clean-my-archives post_type="post, page"]
Disable the comment count from showing:

[clean-my-archives show_comment_count=”0″]

Change the month and day date/time format

[clean-my-archives format_month_year=”F Y” format_post_date=”d:”]

For a full list of formats, see the PHP Date Formats guide.

Does it support pagination?

Sort of. Technically, it doesn’t. However, WordPress pages support pagination. So, you could enter the following in your page editor to paginate by year.

[clean-my-archives year="2013"]

<!-- nextpage -->

[clean-my-archives year="2012"]

<!-- nextpage -->

[clean-my-archives year="2011"]

Atsauksmes

22 jūlijs, 2022
Élégante solution pour naviguer dans les archives du site, parfait pour afficher sur une page de sitemap, et pour pour le SEO
17 novembris, 2017
the best plugin for displaying archive! very easy to use and customize the display.
Lasīt 12 atsauksmi

Autori un izstrādātāji

“Clean My Archives” ir atvērtā pirmkoda programmatūra. Šo spraudni ir veidojuši šādi cilvēki.

Līdzdalībnieki

Tulkot “Clean My Archives&#8221 savā valodā.

Vai jūs interesē attīstība?

Pārlūkojiet kodu, apmeklējiet SVN krātuvi vai abonējiet attīstības žurnālu, ko izveidojis RSS.

Izmaiņu žurnāls

To view the change log, look into the changelog.md file included with the plugin or visit the online change log.