Plugin Directory

Changeset 3445428


Ignore:
Timestamp:
01/23/2026 09:03:05 AM (2 months ago)
Author:
fahdi
Message:

Update readme Usage section

Location:
cardcrafter-data-grids
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cardcrafter-data-grids/tags/1.13.0/readme.txt

    r3445265 r3445428  
    7777== Usage ==
    7878
    79 **WordPress Native Data (NEW!):**
     79**Display WordPress Posts**
     80Display your blog posts, pages, or custom post types as beautiful cards.
     81`[cardcrafter-data-grids post_type="post"]`
     82
     83**Show WooCommerce Products**
     84Display your products in a grid layout.
    8085`[cardcrafter-data-grids post_type="product"]`
     86
     87**Team Directory (Sorted)**
     88Display team members sorted alphabetically by title.
    8189`[cardcrafter-data-grids post_type="team" wp_query="orderby=title&order=ASC"]`
    82 *Display your WordPress posts, pages, or custom post types as beautiful cards*
    83 
    84 **Advanced WordPress Integration:**
     90
     91**News Category**
     92Show only posts from the 'news' category.
    8593`[cardcrafter-data-grids post_type="post" wp_query="category_name=news&posts_per_page=6"]`
     94
     95**Featured Products**
     96Display products that have a 'featured' meta key set to 'yes'.
    8697`[cardcrafter-data-grids post_type="product" wp_query="meta_key=featured&meta_value=yes"]`
     98
     99**Team by Author**
     100Show team members created by a specific author (ID 5).
    87101`[cardcrafter-data-grids post_type="team" wp_query="author=5&orderby=menu_order"]`
    88 *Support for categories, custom fields, authors, and complex WordPress queries*
    89 
    90 **ACF (Advanced Custom Fields) Integration:**
     102
     103**Portfolio with Custom Fields (ACF)**
     104Map your custom fields to card elements automatically.
    91105`[cardcrafter-data-grids post_type="portfolio" image_field="project_image" subtitle_field="client_name"]`
     106
     107**Product with Descriptions**
     108Use custom fields for price and features.
    92109`[cardcrafter-data-grids post_type="product" subtitle_field="price" description_field="product_features"]`
    93 *Automatic integration with ACF fields - use any custom field as card content*
    94 
    95 **Instant Demo (No Setup Required):**
     110
     111**Instant Demo**
     112Automatically loads team demo data with professional banner.
    96113`[cardcrafter-data-grids]`
    97 *Automatically loads team demo data with professional banner*
    98 
    99 **Gutenberg Block (Recommended):**
     114
     115**Gutenberg Block (Recommended)**
    1001161. Add the "CardCrafter" block to any post/page
    1011172. Configure your data source in the sidebar settings
     
    1031194. Preview updates live in the editor
    104120
    105 **Shortcode (Classic Editor):**
     121**Load from JSON URL**
     122Load data from an external JSON source.
    106123`[cardcrafter-data-grids source="https://example.com/team.json"]`
    107124
    108 **With Options:**
     125**Masonry Layout**
     126Display cards in a Pinterest-style masonry layout.
    109127`[cardcrafter-data-grids source="https://example.com/products.json" layout="masonry" columns="4"]`
    110128
    111 **Shortcode Attributes:**
     129**Shortcode Attributes**
    112130*   `source` (optional) - URL of your JSON data. Omit for instant demo mode.
    113131*   `post_type` (NEW!) - WordPress post type to display (post, page, product, etc.)
  • cardcrafter-data-grids/trunk/readme.txt

    r3445263 r3445428  
    7777== Usage ==
    7878
    79 **WordPress Native Data (NEW!):**
     79**Display WordPress Posts**
     80Display your blog posts, pages, or custom post types as beautiful cards.
     81`[cardcrafter-data-grids post_type="post"]`
     82
     83**Show WooCommerce Products**
     84Display your products in a grid layout.
    8085`[cardcrafter-data-grids post_type="product"]`
     86
     87**Team Directory (Sorted)**
     88Display team members sorted alphabetically by title.
    8189`[cardcrafter-data-grids post_type="team" wp_query="orderby=title&order=ASC"]`
    82 *Display your WordPress posts, pages, or custom post types as beautiful cards*
    83 
    84 **Advanced WordPress Integration:**
     90
     91**News Category**
     92Show only posts from the 'news' category.
    8593`[cardcrafter-data-grids post_type="post" wp_query="category_name=news&posts_per_page=6"]`
     94
     95**Featured Products**
     96Display products that have a 'featured' meta key set to 'yes'.
    8697`[cardcrafter-data-grids post_type="product" wp_query="meta_key=featured&meta_value=yes"]`
     98
     99**Team by Author**
     100Show team members created by a specific author (ID 5).
    87101`[cardcrafter-data-grids post_type="team" wp_query="author=5&orderby=menu_order"]`
    88 *Support for categories, custom fields, authors, and complex WordPress queries*
    89 
    90 **ACF (Advanced Custom Fields) Integration:**
     102
     103**Portfolio with Custom Fields (ACF)**
     104Map your custom fields to card elements automatically.
    91105`[cardcrafter-data-grids post_type="portfolio" image_field="project_image" subtitle_field="client_name"]`
     106
     107**Product with Descriptions**
     108Use custom fields for price and features.
    92109`[cardcrafter-data-grids post_type="product" subtitle_field="price" description_field="product_features"]`
    93 *Automatic integration with ACF fields - use any custom field as card content*
    94 
    95 **Instant Demo (No Setup Required):**
     110
     111**Instant Demo**
     112Automatically loads team demo data with professional banner.
    96113`[cardcrafter-data-grids]`
    97 *Automatically loads team demo data with professional banner*
    98 
    99 **Gutenberg Block (Recommended):**
     114
     115**Gutenberg Block (Recommended)**
    1001161. Add the "CardCrafter" block to any post/page
    1011172. Configure your data source in the sidebar settings
     
    1031194. Preview updates live in the editor
    104120
    105 **Shortcode (Classic Editor):**
     121**Load from JSON URL**
     122Load data from an external JSON source.
    106123`[cardcrafter-data-grids source="https://example.com/team.json"]`
    107124
    108 **With Options:**
     125**Masonry Layout**
     126Display cards in a Pinterest-style masonry layout.
    109127`[cardcrafter-data-grids source="https://example.com/products.json" layout="masonry" columns="4"]`
    110128
    111 **Shortcode Attributes:**
     129**Shortcode Attributes**
    112130*   `source` (optional) - URL of your JSON data. Omit for instant demo mode.
    113131*   `post_type` (NEW!) - WordPress post type to display (post, page, product, etc.)
Note: See TracChangeset for help on using the changeset viewer.