Listing Posts Type


Download!

Display the most recent Custom Posts Type in the sidebar.

It gives you a new template tag called listing_posts_type() that you can place anywhere in your sidebar template.

Installation

  1. 1. Upload `listing-posts-type` to the `/wp-content/plugins/` directory.
  2. 2. Activate the plugin through the ‘Plugins’ menu in WordPress.
  3. 3. Add the appropriate code to your template files.

Usage

<?php listing_posts_type( $args ); ?>

Default Usage

$defaults = array(
	'number' => 5,
	'title' => 'Posts Type',
	'title_before' => '<h3>',
	'title_after' => '</h3>',
	'status' => 'publish',
	'post_type' => 'post'
);

Examples

<?php listing_posts_type( 'title=My Channel&post_type=videos' ); ?>
<?php listing_posts_type( array( 'title' => 'My Channel', 'post_type' => 'videos' ) ); ?>

Localization

  • English – (en_EN)
  • Spanish – (es_ES)

Posted in

Leave a Reply