Pure Metafields
The Pure Metafields Plugin is a powerful tool designed to enhance the functionality and flexibility of your WordPress website. With this plugin, you can easily create and manage custom meta boxes, adding extra fields and data to your posts, pages, and custom post types. Key Features ✅ Custom Meta Boxes: Create unlimited custom meta boxes with ease. Define the title, placement, and priority of each meta box to suit your needs. ✅ Flexible Field Types: The plugin offers a wide range of field types to choose from, including text, textarea, select, checkbox, radio buttons, date picker, color picker, gradient, image, gallery, editor, and more. ✅ Repeatable Fields: Enable the ability to repeat fields, allowing users to add multiple instances of the same field dynamically. Perfect for scenarios where you need to capture multiple sets of data. ✅ Conditional Logic: Set up conditional logic to show or hide fields based on the value of other fields. This feature adds versatility and improves the user experience of your forms. ✅ Theme Options Panel: Register unlimited theme option panels with a clean admin UI. Values are stored as WordPress theme_mods and readable with the standard get_theme_mod() API. ✅ Visual Options Builder: Build and manage option panels from a drag-and-drop admin interface — no PHP required. Supports all field types and row/column layouts. ✅ Bake to PHP: Export any builder panel to a standalone PHP file for clean deployment in themes or plugins. ✅ WordPress Customizer Integration: Mirror any option panel into Appearance → Customize with one checkbox. All field types are supported with full sidebar UI. ✅ Save and Retrieve Meta Data: The plugin provides simple functions to save and retrieve meta data, allowing you to access and utilize the stored information in your themes or plugins. ✅ Integration with WordPress API: Seamlessly integrate with the WordPress API and extend its functionalities. Hook into actions and filters to manipulate meta data and create dynamic interactions. Live Docs Theme Options Panel The Options Panel framework lets you register admin option pages that store values as WordPress theme_mods. Read values anywhere with tpmeta_get_option() or the standard get_theme_mod(). Create an Options Panel Register a panel and its sections inside an init action. Each section holds an array of fields. 'Theme Options', 'page_title' => 'Theme Options', 'menu_slug' => 'my-theme-options', 'menu_icon' => 'dashicons-admin-appearance', 'menu_position' => 60, 'capability' => 'manage_options', 'output_css' => true, // auto-print CSS from fields that have 'output' 'customizer_integration' => false, // set true to mirror into Appearance → Customize ) ); TPMeta_Options::set_section( $opt_name, array( 'id' => 'general', 'title' => 'General', 'icon' => 'dashicons-admin-generic', 'fields' => array( // add field arrays here (see field types below) ), ) ); } ); ?> Options Panel — Text Field 'site_tagline', 'type' => 'text', 'label' => 'Site Tagline', 'placeholder' => 'Enter tagline...', 'default' => '', ) ?> Options Panel — Textarea Field 'footer_text', 'type' => 'textarea', 'label' => 'Footer Text', 'placeholder' => 'Type footer content...', 'default' => '', ) ?> Options Panel — Colorpicker 'primary_color', 'type' => 'colorpicker', 'label' => 'Primary Color', 'default' => '#3362FF', 'output' => array( // optional: auto-print CSS when output_css is true 'a, .btn-primary' => 'color', ), ) ?> Options Panel — Select Field 'layout_style', 'type' => 'select', 'label' => 'Layout Style', 'placeholder' => 'Choose layout', 'default' => 'boxed', 'options' => array( 'boxed' => 'Boxed', 'fluid' => 'Fluid', 'framed' => 'Framed', ), ) ?> Options Panel — Switch Field 'show_breadcrumb', 'type' => 'switch', 'label' => 'Show Breadcrumb', 'default' => 'on', // 'on' or 'off' 'data_type' => 'onoff', // 'onoff' (on/off) or 'truefalse' (1/0) ) ?> Options Panel — Checkbox Field 'included_features', 'type' => 'checkbox', 'label' => 'Included Features', 'default' => array( 'dark_mode', 'sticky_header' ), 'options' => array( 'dark_mode' => 'Dark Mode', 'sticky_header' => 'Sticky Header', 'back_to_top' => 'Back to Top Button', 'preloader' => 'Page Preloader', ), ) ?> Options Panel — Tabs (Group Buttons) 'header_style', 'type' => 'tabs', 'label' => 'Header Style', 'default' => 'style_1', 'choices' => array( 'style_1' => 'Style 1', 'style_2' => 'Style 2', 'style_3' => 'Style 3', ), ) ?> Options Panel — Datepicker 'launch_date', 'type' => 'datepicker', 'label' => 'Launch Date', 'placeholder' => 'Select date', 'default' => '', ) ?> Options Panel — Image Field 'custom_logo', 'type' => 'image', 'label' => 'Custom Logo', 'default' => '', ) ?> Options Panel — Gallery Field 'slider_images', 'type' => 'gallery', 'label' => 'Slider Images', 'default' => '', ) ?> Options Panel — Editor Field 'about_content', 'type' => 'editor', 'label' => 'About Page Content', 'default' => '', ) ?> Options Panel — Color Gradient 'hero_gradient', 'type' => 'color_gradient', 'label' => 'Hero Background Gradient', 'default' => '', ) ?> Options Panel — Multicolor 'brand_colors', 'type' => 'multicolor', 'label' => 'Brand Colors', 'options' => array( 'primary' => 'Primary', 'secondary' => 'Secondary', 'accent' => 'Accent', ), 'default' => array( 'primary' => '#3362FF', 'secondary' => '#FF6633', 'accent' => '#33FF99', ), ) ?> Options Panel — Post Select 'featured_page', 'type' => 'post_select', 'label' => 'Featured Page', 'placeholder' => 'Search pages...', 'post_type' => 'page', // any registered post type 'save_format' => 'id', // 'id' or 'slug' 'default' => '', ) ?> Options Panel — Repeater Field 'social_links', 'type' => 'repeater', 'label' => 'Social Links', 'columns' => 2, 'default' => array(), 'fields' => array( array( 'id' => 'platform', 'type' => 'select', 'label' => 'Platform', 'default' => 'facebook', 'options' => array( 'facebook' => 'Facebook', 'twitter' => 'Twitter / X', 'instagram' => 'Instagram', 'linkedin' => 'LinkedIn', ), ), array( 'id' => 'url', 'type' => 'text', 'label' => 'Profile URL', 'placeholder' => 'https://', 'default' => '', ), ), ) ?> Options Panel — Conditional Logic Show or hide a field based on the value of another field in the same section. 'enable_custom_footer', 'type' => 'switch', 'label' => 'Enable Custom Footer', 'default' => 'off', ), // Field shown only when switch is 'on' array( 'id' => 'custom_footer_text', 'type' => 'textarea', 'label' => 'Footer Text', 'default' => '', 'conditional' => array( 'enable_custom_footer', '==', 'on' ), ) ?> Get Option Panel Value Get Repeater Rows from Options Panel Visual Options Builder The Visual Builder lets you create and manage option panels from a drag-and-drop admin interface — no PHP required. How to Use the Builder In the WordPress admin sidebar go to Options Builder. Click Add New Panel and fill in the panel name, slug, icon, and position. Add sections and drag fields into rows. Configure each field’s ID, label, type, default value, and options. Click Save Panel — the panel appears immediately as a live admin menu page. Tick the Customizer Integration checkbox to mirror the panel into Appearance → Customize. Bake to PHP The Bake to PHP button exports any builder panel to a standalone PHP file you can commit to your theme. Open any panel in the builder. Click Bake to PHP in the top toolbar. Copy the generated code into your theme’s functions.php or a dedicated options file. The exported file is self-contained and has no dependency on the builder — it uses TPMeta_Options::set_args() and set_section() directly, so it works even if the builder is later deactivated. WordPress Customizer Integration Any option panel (PHP-registered or builder-created) can be mirrored into Appearance → Customize. Enable via PHP 'Theme Options', 'customizer_integration' => true, // ← enables Customizer mirroring ) ); ?> Enable via the Visual Builder Open the panel in the builder, check the Customizer Integration checkbox, and save. Reading Values Values saved through the Customizer and the admin panel use the same storage (theme_mod). Read them identically:
Top keywords
- panel35×3.19%
- options28×2.55%
- options panel21×1.92%
- field20×1.82%
- 'default'19×1.73%
- 'label'19×1.73%
- 'type'19×1.73%
- array17×1.55%
- builder12×1.09%
- ''10×0.91%
- 'default' ''10×0.91%
- php10×0.91%
Smush – Image Optimization, Compression, Lazy Load, WebP & CDN
Compress images, optimize images, and enable image lazy load automatically with the powerful Smush image optimizer to keep your WordPress site fast, without losing quality. Smush makes it easy to optimize images, compress images, and deliver images faster across your entire WordPress site. This all-in-one image optimizer automatically reduces image file sizes, enables image lazy load, and serves modern formats like WebP and AVIF, all without breaking image quality or adding extra work. Whether you’re running a blog, store, or portfolio, Smush helps you optimize images at scale and keep your site fast with a trusted WordPress image optimizer. Trusted by 1+ Million Sites | 4.8/5 Star Rating Get everything you need to optimize images and speed up your site. Smush works out of the box with no complicated setup – just install and let it handle the rest. Compress images without losing quality Reduce image file size automatically while keeping your images sharp and clear. Smush is an easy-to-use image optimizer which let’s you compress images using both lossless and lossy compression, giving you the best balance of quality and performance without extra work. You can also compress images outside the media library using Directory Smush, making it easy to optimize images stored in theme folders, plugins, or other directories on your server. Lazy load images for faster pages Enable image lazy load across your site so images load only when needed. This image optimizer improves initial page speed and creates a smoother experience for visitors without extra configuration. Serve WebP and AVIF images automatically (PRO) Convert images to WebP and AVIF and serve them automatically to supported browsers. Smush helps you optimize images using next-gen formats to reduce file size and improve load times across your WordPress site. Deliver images faster with an Image CDN (PRO) Serve images through a global image CDN to reduce latency and improve load times for visitors around the world. 119 global CDN servers Up to 500 GB of bandwidth Faster image delivery based on visitor location Improved performance for image-heavy and high-traffic sites Automatically resize and fix image dimensions (PRO) Eliminate common PageSpeed warnings and improve layout stability with automatic image sizing. Smush dynamically resizes images to perfectly fit their containers, regardless of original size, helping fix the “Properly size images” warning in Google PageSpeed Insights. It also automatically adds missing width and height attributes to your images, improving rendering speed and reducing layout shifts. This helps you meet the “Ensure images have explicit width and height” recommendation without any manual work. Optimize your entire site, automatically Smush works across your whole site as a powerful image optimizer to optimize images as you upload them and maintain performance over time without manual work. Optimize images automatically on upload Compress images in bulk or individually Works with your existing media library No need to re-upload images Enable image lazy load across your site Convert images to WebP and AVIF Deliver images with an integrated image CDN Automatically resize and serve correctly sized images Optimize images outside the media library with Directory Smush Built for performance Smush improves page speed and overall performance by reducing image weight and improving how images are delivered. Reduce page load times Improve user experience Better performance for image-heavy pages Supports image lazy load and preload images (PRO) for faster perceived performance Works with your existing setup Smush is built to work with your current WordPress setup, including popular themes, page builders, and plugins. Compatible with Gutenberg, Elementor, WPBakery, and more Works with WooCommerce stores No need to change your workflow Easy to enable and configure Designed to be simple You don’t need to be a performance expert to optimize images with Smush image optimizer. Works out of the box Simple settings when you need them No technical knowledge required Safe to use on any site Why choose Smush? There are plenty of image optimization plugins, but Smush focuses on making it easy to optimize images, compress images, and improve performance without complexity. As a leading WordPress image optimizer, Smush gives you powerful optimization tools without the technical hassle. Trusted by over 1 million WordPress users Built specifically for WordPress Regular updates and improvements Backed by the WPMU DEV team Get started in minutes Install Smush, activate it, and start to compress images, optimize images, and enable image lazy load right away. This easy-to-use image optimizer helps most sites see improvements immediately without changing how they upload or manage images. About Us WPMU DEV is a premium supplier of quality WordPress plugins, services and support. Learn more here: https://wpmudev.com/ Don’t forget to stay up to date on everything WordPress from the Internet’s number one resource: WPMU DEV Blog Hey, one more thing… we hope you enjoy our free offerings as much as we’ve loved making them for you! Contact and Credits Originally written by Alex Dunae at Dialect (dialect.ca, e-mail ‘alex’ at ‘dialect dot ca’), 2008-11.