|
1 | | -# Twee 4.1 |
2 | | - |
3 | | -**Twee** is the advanced WordPress starter theme focused on simplifying the theme development and support |
| 1 | +# Twee 4.2 |
4 | 2 |
|
| 3 | +**Twee** is a powerful WordPress theme framework built for high-performance, large-scale projects. It is finely tuned for Advanced Custom Fields, features an |
| 4 | +alternative metadata storage API, and leverages object caching to minimize database load and maximize speed. |
5 | 5 |
|
6 | 6 | ## Features |
7 | 7 |
|
8 | | -* Asset management library allowing to manage scripts, stylesheets, and localization strings |
9 | | -* Resize and cache thumbnails with or without registering a new image size |
10 | | -* Base widget class with custom settings |
11 | | -* Taxonomy and terms processing libraries |
12 | | -* Breadcrumbs with built-in JSON-LD and microdata support |
13 | | -* Pagination with custom query support |
14 | | -* Modules to load more posts and process the contact form with attachments |
15 | | -* One file configuration. It allows you to specify all your image sizes, assets, menu locations, sidebars, custom post types, taxonomies, and other things in |
16 | | - one place |
| 8 | +### 1. Ultrafast Metadata Storage for Advanced Custom Fields |
| 9 | + |
| 10 | +- Stores metadata for Repeater, Group, or Clone fields in a single row instead of multiple rows |
| 11 | +- Fully compatible with the WordPress Metadata API, even for complex field types |
| 12 | +- Stores field keys in a single field, instead of duplicating keys for each row as in the default ACF behavior |
| 13 | +- Fully supports the ACF API and all ACF plugins |
| 14 | +- Enables dynamic rendering for ACF Flexible Content fields when using the ACF Extended plugin |
| 15 | +- Supports automatic section preview generation for ACF Flexible Content fields via Puppeteer |
| 16 | + |
| 17 | +### 2. Highly Optimized Metadata API |
| 18 | + |
| 19 | +- Includes a performance-optimized metadata API that remains fully compatible with WordPress |
| 20 | +- Reduces heavy database queries by preloading metadata into memory |
| 21 | +- Uses cache partitioning to minimize data transfer from cache |
| 22 | +- Implements advanced techniques like binary search to speed up metadata access |
| 23 | +- Fully integrates with WordPress metadata caching |
| 24 | +- Performs fast metadata updates by checking for changes before writing to the database |
| 25 | + |
| 26 | +### 3. High-Performance Post and Term Libraries |
| 27 | + |
| 28 | +- Enables bulk fetching of post data to avoid N+1 query issues |
| 29 | +- Retrieves post terms and term posts in a single request for improved performance |
| 30 | +- Builds and caches term trees, with the ability to flatten them if needed |
| 31 | +- Includes term threading to easily retrieve full parent-child term hierarchies |
| 32 | +- Supports fetching post IDs associated with specific terms |
| 33 | + |
| 34 | +### 4. Advanced Asset Management |
| 35 | + |
| 36 | +- Automatically scans, resolves, and registers assets and their dependencies |
| 37 | +- Includes only required styles based on section class names |
| 38 | +- Injects essential base styles and fonts into the head for improved loading speed |
| 39 | +- Automates versioning to eliminate manual version bumps when unnecessary |
| 40 | +- Loads required assets for Flexible Content section previews automatically |
| 41 | + |
| 42 | +### 5. Efficient Image Processing and Thumbnail Generation |
| 43 | + |
| 44 | +- Supports hidden image sizes that generate thumbnails on demand to avoid clutter |
| 45 | +- Integrates with popular image minification plugins for optimized output |
| 46 | +- Allows SVG uploads and generates proper metadata |
| 47 | +- Automatically generates correct srcset and sizes based on layout settings |
| 48 | +- Uses high-performance caching for faster thumbnail generation |
| 49 | +- Provides built-in WebP conversion support |
| 50 | + |
| 51 | +### 6. Additional Tools and Utilities |
| 52 | + |
| 53 | +- Includes a custom pagination library with support for custom queries |
| 54 | +- Offers a breadcrumbs library with JSON-LD structured data support |
| 55 | +- Fixes common accessibility issues in menus |
| 56 | +- Built-in Load More post handler for dynamic content loading |
| 57 | +- Integrated logging system with WooCommerce compatibility |
| 58 | +- Provides a base class for building widgets |
| 59 | +- Centralized configuration within functions.php for easy management |
| 60 | + |
| 61 | +### 7. Build Tools and Styles |
| 62 | + |
| 63 | +- Uses Gulp to build all assets, automatically generating separate block styles, injecting CSS properties into the head, and applying additional optimizations |
| 64 | +- Assumes that all styles for a single block are located in one SCSS or CSS file, with the base class ending in _box. Learn more about this approach |
| 65 | + here: [CSS_BOX: A Better Way to Write CSS](https://www.reddit.com/r/css/comments/1apomz1/css_box_a_better_way_to_write_css/) |
| 66 | +- The HTML/CSS starter kit is available in a separate repository: [CSS_BOX Starter Kit](https://github.com/TwistedAndy/starter-kit) |
| 67 | +- Uses the Bigger Picture library for popup images and videos: [Bigger Picture](https://github.com/TwistedAndy/bigger-picture). This library is optimized for |
| 68 | + maximum browser performance and a smooth user experience |
17 | 69 |
|
18 | 70 |
|
19 | 71 | ## About |
|
0 commit comments