https://github.com/armandphilippot/post-types-list-widget
WordPress Plugin: display a list of posts by post types as widget.
https://github.com/armandphilippot/post-types-list-widget
widget wordpress wordpress-plugin wordpress-widget
Last synced: about 1 year ago
JSON representation
WordPress Plugin: display a list of posts by post types as widget.
- Host: GitHub
- URL: https://github.com/armandphilippot/post-types-list-widget
- Owner: ArmandPhilippot
- License: gpl-2.0
- Created: 2021-03-23T17:55:31.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2025-03-08T09:02:02.000Z (about 1 year ago)
- Last Synced: 2025-03-13T07:42:36.015Z (about 1 year ago)
- Topics: widget, wordpress, wordpress-plugin, wordpress-widget
- Language: PHP
- Homepage:
- Size: 2.89 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Post Types List Widget
 
A WordPress Widget to display a list of posts by post types with custom options.
## Presentation
This widget can be place in your sidebar to display a list of posts by post types. It allows you to choose:
- between the default post types and your custom post types
- if all posts must be displayed or if you prefer to set a number of posts
- a sorting method (publication date, title, random...) and a sorting order
- an additional sorting method (optional)
- which data to display (dates, excerpt...)
If you have sticky posts, you may want checked "_Ignore sticky post_" to prevent them to appear at the top of the list.
Although the name of the widget is not very explicit, it allows you to build custom queries through `WP_Query` but all arguments are not available. At first, the idea was to list all posts for custom post types a little like the Categories widget. Then, I decide to add more options to make the widget more reusable.
## Installation
### Composer installation
You can use Composer to install this plugin as a dependency if you use custom installers:
```
{
"require": {
"armandphilippot/post-types-list-widget": "dev-main"
}
"repositories": [{
"type": "git",
"url": "git@github.com:ArmandPhilippot/post-types-list-widget.git"
}]
```
It is also possible to specify a version by replacing `dev-main` with `dev-main#v1.0.0` (an existent tag).
### Manual installation
You can download this plugin on Github, then extract it in `/wp-content/plugins/` directory.
## Usage
1. Navigate to the "_Plugins_" dashboard page and click on "_Activate_".
2. Add "_**Post Types**_" to a widget area through the "_Widgets_" menu in WordPress.
3. Configure settings.
## Screenshots
| Admin view | Public view |
| ---------------------------------------------------------- | ------------------------------------------------------------ |
|  |  |
## License
This project is open source and available under the [GPL v2 or later License](https://github.com/ArmandPhilippot/post-types-list-widget/blob/master/LICENSE).