Skip to content

bueltge/Archive

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

54 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Archive

Archive your post types, also possible with cron and list via shortcode on frontend.

Description

Archive your post types, also possible via cron; but only active via var inside the php-file. Use the shortcode [archive] to list al posts from Archive with status publish to a page or post. The Shortcode can use different params and use the follow defaults.

'count'         => -1, // Integer, count or -1 for all posts
'category'      => '', // Integer, Show posts associated with certain categories, use the ID of the category.
'tag'           => '', // Integer, Show posts associated with certain tags.
'post_status'   => 'publish', // String, status or all for all posts
'echo'          => 'true', // Boolean, echo or give an array for use external
'return_markup' => 'ul', // String, markup before echo title, content
'title_markup'  => 'li', // String, markup before item
'content'       => 'false', // Boolean, Content of each post
'debug'         => 'false' // Boolean, debug, get helpful informations on debugging

An example for use shortcode with parameters: [archive count="10" content="true"]

Category

If you filter the posts to one category, use the ID as integer value, like category="11". For more as one separate with comma, like category="11,1".

Tag

Display posts that have this tag, using tag slug, like tag="cooking". If you need more as one tag use comma separated list like tag="bread,baking"

Also you can change the parameters to create the custom post type of the Archiv via the filter hook archive_post_type_arguments.

Crafted by Inpsyde · Engineering the web since 2006.

Installation

Requirements

  • WordPress version 3.0 and later
  • PHP 5.3

Installation

  1. Unpack the download-package
  2. Upload the folder and all folder and files includes this to the /wp-content/plugins/ directory
  3. Activate the plugin through the 'Plugins' menu in WordPress
  4. Now you find a link on all post types for archive the item

Screenshots

  1. Possibility to archive on posts, WP 4.2-alpha Possibility to archive on posts

  2. Possibility to archive on posts, WP 3* Possibility to archive on posts

  3. In Archive, also possible to restore, WP 3* In Archive, also possible to restore

Other Notes

License

Good news, this plugin is free for everyone! Since it's released under the GPL, you can use it free of charge on your personal or commercial blog. But if you enjoy this plugin, you can thank me and leave a small donation for the time I've spent writing and supporting this plugin. And I really don't want to know how many hours of my life this plugin has already eaten ;)