Title: Custom Post Display
Author: Cris Puno
Published: <strong>6 juin 2012</strong>
Last modified: 12 août 2026

---

Recherche d’extensions

![](https://s.w.org/plugins/geopattern-icon/custom-post-display.svg)

# Custom Post Display

 Par [Cris Puno](https://profiles.wordpress.org/crispuno/)

[Télécharger](https://downloads.wordpress.org/plugin/custom-post-display.2.0.0.zip)

 * [Détails](https://fr-ca.wordpress.org/plugins/custom-post-display/#description)
 * [Avis](https://fr-ca.wordpress.org/plugins/custom-post-display/#reviews)
 *  [Installation](https://fr-ca.wordpress.org/plugins/custom-post-display/#installation)
 * [Développement](https://fr-ca.wordpress.org/plugins/custom-post-display/#developers)

 [Support](https://wordpress.org/support/plugin/custom-post-display/)

## Description

You can use the Custom Post Display plugin to display the contents of any custom
post type in your WordPress site, either as a widget or anywhere in your content
using a shortcode.

Features include:

 * Widget and [custom_post_display] shortcode for placing anywhere (including the
   block editor via the Shortcode block)
 * Options to order by Post Title, Date and Menu Order
 * Inclusion of Featured Image with centered, left or right alignment
 * Customize number of posts displayed
 * Specify number of words per post excerpt

More information and a demo can be found at [my site](https://www.crispuno.ca/?p=228).

## Captures d’écran

[⌊Widget options.⌉⌊Widget options.⌉[

Widget options.

[⌊Sample output.⌉⌊Sample output.⌉[

Sample output.

## Installation

 1. Download and unzip the file.
 2. Upload the Custom Post Display folder to your WordPress plugins folder
 3. Log in to WordPress and go to Plugins
 4. Click on the Activate link for Custom Post Display.
 5. Go to Appearance > Widgets and add the Custom Post Display widget to your sidebar,
    or use the [custom_post_display] shortcode in any post or page.

## FAQ

### Can I use this widget for Posts and Pages?

Yes, you have the option to choose Posts or Pages when you choose a custom post 
type. You can actually just use this widget to display recent posts or pages.

### How do I use the shortcode?

Add [custom_post_display] to any post or page. You can pass options, for example:

    ```
    [custom_post_display posttype="product" postnum="5" postlength="20" byorder="name" sorter="ASC" show_image="1" image_pos="left" moretext="Read more"]
    ```

Available attributes: posttype, postnum, postlength, byorder (empty for date, menu_order,
or name), sorter (ASC or DESC), show_image (1 or 0), image_pos (centered, left, 
right) and moretext.

### Can I choose which posts to feature?

Yes, if you have the Page Attributes box enabled for your custom post type (or Post/
Page), when you edit that post, just enter a number in the Order box.
 Number your
posts according to the order you want them to appear, then, in the Widget options,
just choose ‘Menu Order’ in the ‘Order By’ field and choose your Sort order.

## Avis

![](https://secure.gravatar.com/avatar/f6f742e513f80653f575cf82032717b83fee1966d357637b9f6a105a705acdc5?
s=60&d=retro&r=g)

### 󠀁[Works good](https://wordpress.org/support/topic/works-good-514/)󠁿

 [huntvinyl](https://profiles.wordpress.org/huntvinyl/) 12 août 2026

Easy way to show custom posts on the site. Works well for what I need it to do.

![](https://secure.gravatar.com/avatar/3cb221ac7e5b3ee1c2a591e0495e9f3d177d116655f01f4b8b0e3bd31fc54fc8?
s=60&d=retro&r=g)

### 󠀁[Very useful](https://wordpress.org/support/topic/very-useful-1298/)󠁿

 [aaab456](https://profiles.wordpress.org/aaab456/) 15 juin 2017

This plugin is as easy as imagined.

![](https://secure.gravatar.com/avatar/4b1de0c8ef1706981d3d5c0934a8c79aed657420d6a7719f62003fb59a758268?
s=60&d=retro&r=g)

### 󠀁[Works well](https://wordpress.org/support/topic/works-well-637/)󠁿

 [cassettehead](https://profiles.wordpress.org/cassettehead/) 3 septembre 2016

Works well for my site. Hope you have an additional feature to use a shortcode instead
of a widget.

![](https://secure.gravatar.com/avatar/20a37e118b8bd72fd0a2e75f7fe62557bbdb57df5e9c73a9ffc4bf2e6123bd45?
s=60&d=retro&r=g)

### 󠀁[Awesome](https://wordpress.org/support/topic/awesome-2881/)󠁿

 [keetykat](https://profiles.wordpress.org/keetykat/) 3 septembre 2016

Needed a plugin to display the custom posts in a widget for a project I have and
this one works like a charm.

 [ Lire les 5 avis ](https://wordpress.org/support/plugin/custom-post-display/reviews/)

## Contributeurs & développeurs

« Custom Post Display » est un logiciel libre. Les personnes suivantes ont contribué
à cette extension.

Contributeurs

 *   [ Cris Puno ](https://profiles.wordpress.org/crispuno/)

[Traduisez « Custom Post Display » dans votre langue.](https://translate.wordpress.org/projects/wp-plugins/custom-post-display)

### Le développement vous intéresse ?

[Parcourir le code](https://plugins.trac.wordpress.org/browser/custom-post-display/),
consulter le [SVN dépôt](https://plugins.svn.wordpress.org/custom-post-display/),
ou s’inscrire au [journal de développement](https://plugins.trac.wordpress.org/log/custom-post-display/)
par [RSS](https://plugins.trac.wordpress.org/log/custom-post-display/?limit=100&mode=stop_on_copy&format=rss).

## Historique des changements

#### 2.0.0

 * Compatibility rewrite for modern WordPress and PHP 8
 * Fixed fatal error on PHP 8 by removing create_function()
 * Replaced the deprecated PHP4-style widget constructor with __construct()
 * Added a [custom_post_display] shortcode so the plugin works in post content and
   the block editor, not just widget areas
 * Escaped all output and sanitized all saved options
 * Replaced a direct database query with get_post_types()
 * Added direct-access protection and internationalization
 * Confirmed compatibility with WordPress 7.0

#### 1.2

 * Replaced deprecated WP Widgets construct
 * Added option for thumbnail alignment

#### 1.1

 * Fixed issue with missing word trimmer function

#### 1.0

 * Initial release

## Méta

 *  Version **2.0.0**
 *  Last updated **il y a 3 semaines**
 *  Active installations **40+**
 *  WordPress version ** 5.0 ou plus **
 *  Tested up to **7.0.4**
 *  PHP version ** 7.4 ou plus **
 *  Language
 * [English (US)](https://wordpress.org/plugins/custom-post-display/)
 * Tags
 * [custom post type](https://fr-ca.wordpress.org/plugins/tags/custom-post-type/)
   [custom post widget](https://fr-ca.wordpress.org/plugins/tags/custom-post-widget/)
   [shortcode](https://fr-ca.wordpress.org/plugins/tags/shortcode/)
 *  [Vue avancée](https://fr-ca.wordpress.org/plugins/custom-post-display/advanced/)

## Notes

 3.7 out of 5 stars.

 *  [  4 5-star reviews     ](https://wordpress.org/support/plugin/custom-post-display/reviews/?filter=5)
 *  [  0 4-star reviews     ](https://wordpress.org/support/plugin/custom-post-display/reviews/?filter=4)
 *  [  0 3-star reviews     ](https://wordpress.org/support/plugin/custom-post-display/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/custom-post-display/reviews/?filter=2)
 *  [  2 1-star reviews     ](https://wordpress.org/support/plugin/custom-post-display/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/custom-post-display/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/custom-post-display/reviews/)

## Contributeurs

 *   [ Cris Puno ](https://profiles.wordpress.org/crispuno/)

## Support

Quelque chose à dire ? Besoin d’aide ?

 [Voir le forum de support](https://wordpress.org/support/plugin/custom-post-display/)

## Faire un don

Souhaitez-vous soutenir l’avancement de cette extension ?

 [ Faire un don à cette extension ](https://www.crispuno.ca/?page_id=306)