How to display grid products and single products in a page/post using AMS shortcode
The AMS WooCommerce Amazon Plugin provides a powerful shortcode feature that allows you to display your WooCommerce products in both grid and single layouts within any WordPress post or page. Here’s your complete guide to using this functionality.
Understanding the Shortcodes
Single Product Display
To showcase a single product, use:
[ams_display_products ids="123" layout="single"]
Replace “123” with your actual product ID.
Grid Layout Display
To display multiple products in a grid format:
[ams_display_products ids="123,456,789" columns="3" layout="grid"]
- Replace “123,456,789” with your desired product IDs
- Adjust the “columns” value (e.g., 2, 3, 4) to set products per row
How to Find Product IDs
- Go to the WordPress admin dashboard
- Navigate to the Products section
- Hover over any product name
- Look for the ID number shown below the product name
Customization Options
Legal Notice
- Toggle legal notice display above products
- Customize the notice text (default: “Affiliate Products | Advertisement | Sponsored”)
Product Update Information
- Individual Product Updates:
- Show/hide update timestamps for each product
- Customize message format (e.g., “Last updated: {date}”)
- Global Update Information:
- Display an overall update timestamp at the bottom
- Customize the message text
Additional Display Settings
- Custom notification message option
- Alignment control (left/right) for all messages
- Enable/disable various display elements
Quick Setup Using Auto-Create Feature
Automatic Page/Post Creation
- Go to AMS Plugin Settings
- Find the WooCommerce Shortcode Settings section
- Choose between Page or Post creation
- Click “Create Pages/Posts” for instant example pages
Managing Created Content
- Use “Delete Pages/Posts” to remove auto-created content
- Perfect for testing or starting fresh
Implementation Examples
Blog Post Integration
[ams_display_products ids="123" layout="single"]
Ideal for product reviews or detailed product discussions.
Category Showcase
[ams_display_products ids="123,456,789" columns="3" layout="grid"]
Perfect for displaying product collections or related items.
Tips for Best Results
- Test shortcodes in draft mode first
- Keep product information updated
- Use appropriate column numbers based on your theme’s width
- Enable relevant timestamps for product freshness
- Maintain legal notices for affiliate compliance
Remember: The AMS shortcode system automatically handles responsive design and maintains consistency with your theme’s styling while providing all essential product information.