Plugin Directory

Changeset 3180021


Ignore:
Timestamp:
11/01/2024 02:26:00 PM (17 months ago)
Author:
ambercouch
Message:

Update readme

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ac-custom-loop-shortcode/trunk/readme.txt

    r3179979 r3180021  
    1010License URI: https://www.gnu.org/licenses/gpl-2.0.html
    1111
    12 Shortcode to display posts in content areas.
     12A simple WordPress plugin that creates a shortcode to loop through posts, pages, or custom post types and display them anywhere on your site.
    1313
    1414== Description ==
    1515
    16 A simple Wordpress plugin that creates Wordpress shortcode that will loop through posts, pages, or custom post types and display them on your website or blog. A typical use would be to show your latest post on your homepage.
     16Easily display posts, pages, or custom post types in content areas using a customizable shortcode. Display your latest posts, group by taxonomies, or use custom templates with Timber for Twig support.
    1717
    1818== Installation ==
    1919
    20 Use WordPress' Add New Plugin feature, searching "AC custom loop", or download the archive and:
     201. Install via WordPress Add New Plugin feature by searching "AC Custom Loop," or upload the plugin files to `/wp-content/plugins/ac-wp-custom-loop`.
     212. Activate the plugin via the ‘Plugins’ screen in WordPress.
     223. Use `[ac_custom_loop]` shortcode in any page, post, or widget supporting shortcodes.
     234. The default setup displays your latest 4 posts. Customize with attributes like `type` and `show`, e.g., `[ac_custom_loop type="page" show="3"]` to display the latest three pages.
    2124
    22 1. Upload the plugin files to the `/wp-content/plugins/ac-wp-custom-loop` directory, or install the plugin through the WordPress plugins screen directly.
    23 2. Activate the plugin through the 'Plugins' screen in WordPress
    24 3. Add the shortcode [ac_custom_loop] to the content area of any page, post or custom post type or to any widget that supports shortcode.
    25 4. By default the shortcode will display your latest 4 post, you can use the 'type' and 'show' arguments to customise the type of post that are shown and how many eg. [ac_custom_loop type="page" show="3"] would show the last three published pages.
     25== Shortcode Options and Examples ==
    2626
     27**Display a specific post type:**
     28`[ac_custom_loop type="foo"]`
     29This displays posts from the `foo` custom post type.
     30
     31**Display posts with specific tags:**
     32`[ac_custom_loop type="post" tax="tag" term="foo"]`
     33This displays posts tagged with `foo`.
     34
     35**Group posts by taxonomy (e.g., categories and tags):**
     36`[ac_custom_loop type="post" subtax="category,tag"]`
     37Groups posts by categories, then by tags within each category.
     38
     39**Exclude posts by specific tags:**
     40`[ac_custom_loop type="post" tax="tag" term="foo,bar" exclude="baz"]`
     41This displays posts tagged with `foo` and `bar`, but excludes those tagged with `baz`.
     42
     43**Use a custom template for loop display:**
     44To use a custom template, copy `loop-template.php` from the plugin folder to the root of your theme folder and modify as desired. You can also create templates for specific post types (e.g., `loop-template-post.php`).
    2745
    2846== Frequently Asked Questions ==
    2947
    30 = How do I display a certain post type using the short code
     48= How do I show posts from a specific post type? =
     49Use `[ac_custom_loop type="your_post_type"]` to show posts from a specific custom post type.
    3150
    32 [ac_custom_loop type="foo"]
    33 this displays foo custom post types
     51= Can I display posts with a specific taxonomy term? =
     52Yes! Use `[ac_custom_loop type="post" tax="tag" term="your_term"]` to filter posts by taxonomy term.
    3453
    35 = How do I display a post that have a certain tag =
     54= How can I group posts by taxonomies? =
     55Use `[ac_custom_loop subtax="category,tag"]` to group posts by taxonomies.
    3656
    37 [ac_custom_loop type="post" tax="tag" term="foo" ]
    38 this displays posts that have been tagged foo
     57= Can I exclude specific terms? =
     58Yes, add `exclude="term"` to exclude posts tagged with that term.
    3959
    40 = How do I group post in to tags =
    41 
    42 [ac_custom_loop type="post" subtax="category,tag"]
    43 this displays posts grouped into category and sub-grouped in to tags
    44 
    45 Cat Foo
    46   Tag bar
    47     post1, post2
    48   tag baz
    49     post3, post4
    50 Cat Foo2
    51   Tag bar2
    52     post5, post6
    53 
    54 = Can I use my own template to display the looped posts? =
    55 
    56 Yes you can! Simply copy loop-template.php from the plugin folder to the root of your theme folder and edit as needed.
    57 You can also create a template for each post type such as loop-template-post.php or loop-template-page.php or loop-template-my-custom-post.php
     60= Can I use custom templates? =
     61Absolutely! Copy `loop-template.php` to your theme directory or create post-type-specific templates, such as `loop-template-post.php`.
    5862
    5963== Screenshots ==
    6064
    61 1. Add the code to any content area that accepts shortcode.
    62 2. Posts, Pages or Custom post types are shown on the front end of your website.
     651. Adding the shortcode to any content area that supports shortcodes.
     662. Posts, pages, or custom post types appear styled in your chosen layout on the front end.
    6367
    6468== Upgrade Notice ==
    6569
    6670= 1.5.1 =
    67 Added support for grouping posts by taxonomies.
     71Added support for grouping posts by multiple taxonomies and refactored core code for flexibility and clarity.
    6872
    6973= 1.5 =
    70 Updated Timber support.
     74Improved Timber support.
    7175
    7276= 1.4.3 =
    73 Fix release issues.
    74 
    75 = 1.4.2 =
    76 Fix template arguments to allow .php to be optional.
    77 
    78 = 1.4.0 =
    79 Updates to templates plus timber support and show posts using ids.
    80 
    81 = 1.1.0 =
    82 Updates to default template and post order.
    83 
    84 = 0.1.1 =
    85 Added user template function
    86 
    87 = 0.0.1 =
    88 Initial version
     77Fixed release issues.
    8978
    9079== Changelog ==
    9180
    9281= 1.5.1 (2024-11-01) =
    93 * Added support for grouping posts by taxonomies.
    94 * Refactored all the code
     82* Added support for grouping posts by multiple taxonomies.
     83* Refactored core code for improved maintainability.
    9584
    9685= 1.5 (2021-04-04) =
    97 * Fix release issues.
     86* Enhanced Timber compatibility.
    9887
    9988= 1.4.3 (2019-12-06) =
    100 * Fix release issues.
     89* Resolved release issues.
    10190
    10291= 1.4.2 (2019-12-24) =
    103 * Fix shortcode argument issues.
    104 
    105 = 1.4.1 (2019-12-06) =
    106 * Fix release issues.
     92* Fixed shortcode argument issues.
    10793
    10894= 1.4.0 (2019-12-05) =
    109 * Added ids param to shortcode.
    110 * Added post type templates.
    111 * Added Timber template integration
     95* Added support for specific post type templates and custom Timber integration.
    11296
    11397= 1.1.0 (2018-10-16) =
    114 * Added optional excerpt to the default template.
    115 * Added default post order (post = date, everything else = menu_order).
    116 
    117 = 0.1.1 (2018-10-13) =
    118 * Added function to override template with the users own template
    119 * Added GPLv2 licence
    120 * Fixed some typos
     98* Added default post order and optional excerpt in the default template.
    12199
    122100= 0.1.0 (2018-10-07) =
    123 * Initial version on WP repository
     101* Initial release.
Note: See TracChangeset for help on using the changeset viewer.