=== AddonLogic Post Type Shortcode ===
Contributors: snehalpancholi
Tags: shortcode, post type, grid, list, card layout
Requires at least: 6.0
Tested up to: 6.7
Stable tag: 1.0.0
Requires PHP: 8.1
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Display any post type as a configurable list, grid, or card layout using [list_posts].

== Description ==

AddonLogic Post Type Shortcode provides the `[list_posts]` shortcode that queries any post type and renders it as a responsive grid, list, or card layout — no page builder needed.

**Features:**
* Works with any registered post type
* 3 layout styles: grid, list, card (with hover effects)
* 1–6 column grid
* Optional thumbnail, excerpt, date, author display
* Taxonomy/term filtering
* Fully responsive and dark mode aware
* CSS variable-based theming
* Lightweight — CSS loaded only when shortcode is used

== Shortcode Attributes ==

| Attribute        | Default          | Description |
|-----------------|-----------------|-------------|
| type            | post            | Post type slug |
| count           | 6               | Number of posts |
| columns         | 3               | Grid columns (1–6) |
| orderby         | date            | WordPress orderby parameter |
| order           | DESC            | ASC or DESC |
| show_thumbnail  | true            | Show featured image |
| show_excerpt    | true            | Show excerpt |
| excerpt_length  | 20              | Words in excerpt |
| show_date       | false           | Show post date |
| show_author     | false           | Show author name |
| style           | grid            | grid, list, or card |
| taxonomy        |                 | Filter by taxonomy slug |
| terms           |                 | Comma-separated term slugs |
| no_posts_text   | No posts found. | Text when no posts |
| link_text       | Read more       | Read more link text |
| class           |                 | Extra CSS class on wrapper |

== Usage Examples ==

```
[list_posts]
[list_posts type="portfolio" style="card" columns="4" count="8"]
[list_posts type="team" style="list" show_thumbnail="true" show_excerpt="false"]
[list_posts type="post" taxonomy="category" terms="news,updates" count="3"]
[list_posts style="grid" columns="2" show_date="true" show_author="true" excerpt_length="15"]
```

== Installation ==

1. Upload `post-type-shortcode` folder to `/wp-content/plugins/`
2. Activate the plugin
3. Use `[list_posts]` shortcode in any page, post, or widget

== Changelog ==

= 1.0.0 =
* Initial release

== Upgrade Notice ==

= 1.0.0 =
Initial release.
