Get Custom Field Values
This plugin provides a powerful widget, shortcode (with shortcode builder tool), and template tags for easily retrieving and displaying custom field values for posts or pages. The power of custom fields gives this plugin the potential to be dozens of plugins all rolled into one. This plugin allows you to harness the power of custom fields/meta data. Use the “Get Custom Field” widget, the [custom_field] shortcode (which has a post editor sidebar widget to help you build the shortcode), or one of six template tags to retrieve and display custom fields. Find a custom field for the current post, a specified post, a recent post, or randomly. And for the custom field values found by the plugin, you may optionally specify text or HTML to appear before and after the results. If nothing is found, then nothing is display (unless you define text to appear when no results are found). If multiple results are found, only the first will be displayed unless you specify a string to be used to join the results together (such as “,”), in which case all will be returned. Visit the Examples section to see how this plugin can be cast in dozens of different ways. There are six template tags provided by this plugin. Here they are, with an explanation of when they are appropriate for use: c2c_get_custom() : Use this inside “the loop” to retrieve a custom field value for a post c2c_get_current_custom() : This is only available on the permalink post template (single.php) and page template (page.php). Can be used inside or outside “the loop”. Useful for using custom field to define text you want to include on a post or page’s header, footer, or sidebar. c2c_get_post_custom() : Useful when you know the ID of the post whose custom field value you want. c2c_get_random_custom() : Retrieve the value of a random instance of the specified custom field key, as long as the field is associated with a published posted, non-passworded post (you can modify a setting in the plugin file to search passworded posts as well). c2c_get_random_post_custom() : Retrieves the value of random custom field(s) from a post when you know the ID of the post you’re interested in. c2c_get_recent_custom() : Retrieves the most recent (according to the associated post’s publish date) value of the specified custom field. You can filter the custom field values that the plugin would display. Add filters for ‘the_meta‘ to filter custom field data (see the end of the code file for commented out samples you may wish to include). You can also add per-meta filters by hooking ‘the_meta_$sanitized_field‘. $sanitized_field is a clean version of the value of $field where everything but alphanumeric and underscore characters have been removed. So to filter the value of the “Related Posts” custom field, you would need to add a filter for ‘the_meta_RelatedPosts‘. Links: Plugin Homepage | Plugin Directory Page | GitHub | Author Homepage Developer Documentation Developer documentation can be found in DEVELOPER-DOCS.md. That documentation covers the numerous template tags, hooks, and shortcode provided by the plugin. As an overview, these are the template tags provided the plugin: c2c_get_custom() : Template tag for use inside “the loop” and applies to the currently listed post. c2c_get_current_custom() : Template tag for use on permalink (aka single) page templates for posts and pages. c2c_get_post_custom() : Template tag for use when you know the ID of the post you’re interested in. c2c_get_random_custom() : Template tag for use to retrieve a random custom field value. c2c_get_random_post_custom() : Template tag for use to retrieve random custom field value(s) from a post when you know the ID of the post you’re interested in. c2c_get_recent_custom() : Template tag for use outside “the loop” and applies for custom fields regardless of post. These are the hooks provided by the plugin: c2c_get_custom_field_values_shortcode : Filter to customize the name of the plugin’s shortcode. c2c_get_custom_field_values_post_types : Filter to customize the post types that should support the shortcode builder metabox. get_custom_field_values/can_author_use_shortcodes : Filter to customize if post author can make use of the ‘custom_field’ shortcode. get_custom_field_values/show_metabox : Filter to customize if the shortcode builder metabox is shown. The shortcode provided is [custom-field], which has a number of attributes to customize its behavior and output.
Top keywords
- custom37×4.86%
- field25×3.29%
- post24×3.15%
- custom field21×2.76%
- c2c14×1.84%
- template13×1.71%
- shortcode11×1.45%
- value9×1.18%
- filter8×1.05%
- random8×1.05%
- custom field values7×0.92%
- field values7×0.92%
Checkout Field Editor (Checkout Manager) for WooCommerce
WooCommerce Checkout Field Editor enables you to edit the default checkout fields of your WooCommerce platform, add, edit, hide, or delete the default fields, change labels, rearrange checkout fields, validate the checkout fields, add custom css classes etc. 🔥 #The Ultimate Solution for Customizing WooCommerce Checkout Fields The default WooCommerce checkout field editor offers only basic fields, limiting the ability to collect crucial information. Moreover, manually customizing checkout fields with code is time-consuming and complex and leads to the following issues ❌ No Personalization – Customers expect a seamless, customized experience, but the default setup doesn’t allow it. ❌ Poor User Experience – A cluttered checkout page with unnecessary fields can frustrate customers, leading to cart abandonment. ❌ Reduced Conversions – An unoptimized checkout process can increase drop-offs and lower sales. How WooCommerce Checkout Field Editor (Checkout Manager) simplifies customization? ✳️ Complete Checkout Field Customization → Effortlessly add, edit, remove, and rearrange fields. ✳️ 24+ Field Types→ Add additional field types to your Checkout page. ✳️ Optimized for Conversions → Create a seamless checkout flow, reducing friction and increasing sales. ✳️ Compatible with Classic & Block Checkout → Effortlessly customize fields, whether you’re using the classic checkout layout or the modern block-based layout . ✳️ Custom Hooks → Easily Add more functionalities features with developer-friendly custom Hooks. 👉Note: Block Compatibility → Our Checkout Field Editor (Checkout Manager) for WooCommerce now supports WooCommerce Checkout Blocks, allowing customization with Text, Select, Radio, and Checkbox fields, plus validation for Email, Phone, and URL. More field types will be added in upcoming updates. Try Demo | Documentation | Get Pro 🔥 EXPLORE WHAT OUR FREE VERSION OFFERS ✅ ADD FIELDS TYPES TO CHECKOUT PAGE 👉 Easily add up to 20 different checkout field types to gather more customer information using Classic checkout. 1. Text 2. Number 3. Hidden 4. Password 5. Email 6. Phone 7. Radio 8. Textarea 9. Select 10. Multi Select 11. Checkbox 12. Checkbox Group 13. DateTime Local 14. Date 15. Month 16. Time 17. Week 18. URL 19. Heading 20. Paragraph 👉 Also the users can add 10 checkout field types to gather more customer information using Block checkout. 1. Text 2. Number 3. Textarea 4. Select 5. Radio 6. Checkbox 7. Email 8. URL 9. Paragraph 10. Heading Users can edit, delete and enable/disable these fields. With the simple drag-and-drop interface, users can also easily reposition fields to meet their business needs effortlessly. ✅ VALIDATE THE CHECKOUT FIELDS Validate both custom and default checkout fields to prevent incomplete or incorrect submissions, enhancing the user experience and reducing errors during checkout. Number: Restricts input to numerical values Email: Ensures correct email formatting Phone: Validate phone number input State & Postcode: Checks location-based details URL: Allows only properly formatted web addresses ✅ MANAGE CUSTOM CHECKOUT FIELD VISIBILITY In Classic checkout control the visibility of custom checkout fields on the Order Details Page and in emails with a simple checkbox option In Block checkout control the visibility of custom checkout fields in the Admin emails, customer emails, admin order details & customer order details with a simple checkbox option ✅ PREVENT ADDRESS FIELD OVERRIDES By default, WooCommerce will change the address format based on the countries. Using this plugin, you can prevent the override address field properties and use the values set using the plugin. You can also change the address formats displayed in the addresses in My Account page, Thank You page and Transactional Emails. 👉Note: The custom fields created using this plugin can also be included in the addresses using the override feature. ✅ ONE-CLICK RESET TO DEFAULT FIELDS Restore the original state and revert to default fields effortlessly with a single click. ✅ EASILY TRANSLATE TO OTHER LANGUAGES The Checkout Field Editor plugin supports WPML, Polylang, and Loco Translate, making it simple to translate fields into different languages. For dynamic strings, use the Polylang or WPML plugin. 🔥 WHY SWITCH TO PRO? While the free version of Checkout Field Editor for WooCommerce offers essential features to enhance your checkout pages, the premium version offers full control over your checkout process & easily customize WooCommerce Checkout Fields – Works with Both Classic & Block Checkout!—ensuring a better customer experience and higher revenue such as: 👉 4 additional field types for more flexibility 👉 Add & edit display sections and fields conditionally 👉 Custom validations to ensure accurate data 👉 Price fields with a variety of price types 👉 Change the address display format 👉 Developer friendliness with custom hooks 👉 Compatibility with third-party plugins for extended functionality GET FULL ACCESS WITH PREMIUM NOW ! 👉 WPML Compatibility The WooCommerce Checkout Field Editor works smoothly with WPML, allowing you to translate checkout field labels and text into multiple languages for a better multilingual checkout experience. 🔥 SEE OUR PREMIUM FEATURES Try Demo | Documentation | Get Pro ✅ ADD 4 ADDITIONAL FIELDS TYPES TO CHECKOUT PAGE 1. File Upload 2. Time Picker 3. Date Picker 4. Label 🆕 👉 Note: The Pro version lets you add an extra checkout field type Date Picker when using Block Checkout. ✅ POSITION SECTIONS AT 14 POSITIONS Display sections at 14 different locations, offering greater flexibility in organizing your checkout page. 1. Before customer details 2. After customer details 3. Before billing form 4. After billing form 5. Before shipping form 6. After shipping form 7. Before registration form 8. After registration form 9. Before order notes 10. After order notes 11. Before terms & conditions 12. After terms & conditions 13. Before submit button 14. After submit button 👉Note: Additionally, with our WooCommerce Multistep Checkout plugin, you can add custom sections inside a custom step, giving you a total of 15 placement options ✅ DISPLAY SECTIONS & FIELDS BASED ON CONDITIONS Show/hide custom fields only when specific conditions are met. Cart contains Cart subtotal Cart total User Roles Product Product Variations Product Category Based on other field values Based on Shipping Method Based on Payment Method ✅ CREATE & APPLY CUSTOM VALIDATIONS FOR CHECKOUT FIELDS You can validate checkout fields before order submission. Along with default validation options, you can create custom validation rules to ensure your fields meet specific requirements ✅ CREATE CONFIRM FIELD VALIDATION You can create confirm field validators to compare the values of two fields. For example, ensure that the ‘password’ and ‘confirm password’ fields match before proceeding with the checkout ✅ ADD PRICE FIELDS WITH MULTIPLE PRICE TYPE Add additional price values to the total by including price fields in the checkout form. You can also set predefined fixed prices using hidden fields in WooCommerce Checkout. Fixed Price: Add a fixed amount to the total price when the field is selected. Custom Price: Let users enter their own price, ideal for donations or tips. Percentage of Cart Total: Set the field price as a percentage of the cart total.. Percentage of Subtotal: Add a price based on a percentage of the subtotal. Percentage of Subtotal Excluding Tax : Add a price based on the percentage subtotal excluding tax. Dynamic Price: Set price per unit, with the total calculated based on the number of units selected. ✅ EDIT & PERSONALIZE ADDRESS FORMATS With the WooCommerce Checkout Field Editor, you can customize the address format displayed on the My Account page, Thank You page, and transactional emails. Additionally, you can include custom fields created with the plugin in the address format using the override feature. ✅ SET REPEAT RULES FOR CUSTOM FIELDS The Pro version of the WooCommerce Checkout Manager plugin allows you to set repeat rules for custom fields and sections based on criteria such as product quantity and cart count only in classic checkout ✅ DEVELOPER FRIENDLY All the custom fields in the Checkout Field Editor are available through hooks. So, the developers can use the checkout fields to extend the functionality of the fields. ✅ SUPPORTED PLUGINS & THEMES 👉 PLUGINS PDF Invoices & Packing Slips for WooCommerce by WP Overnight Customer / Order / Coupon Export for WooCommerce by SkyVerge Multi-language Support (WPML, Polylang & Loco Translate) Zapier Support 👉 THEMES Astra WoodMart Divi Avada Flatsome OceanWP Storefront etc.. Why ThemeHigh At themehigh, we specialize in providing thoughtful solutions to help you create your store in the easiest and simplest way possible, providing you with a smooth and enjoyable customization experience. 🏆 2 Million+ Customers 🏆 Quickest Turn-around Support 🏆 Most Lightweight Plugins 🔥 Explore More If you like the Extra product option, then consider checking out our other WordPress Plugins: 👉Extra Product Options For WooCommerce: This Custom Product addons plugin lets you quickly add additional fields (19 custom field types) and sections to your WooCommerce Product page. 👉 Variation Swatches for WooCommerce: Using the WooCommerce Variation Swatches plugin, you can easily convert default WooCommerce product attribute drop-downs into customizable swatches and display customized product variations. 👉 Email Customizer for WooCommerce | Drag and Drop Email Templates Builder: Email Customizer is a plugin that helps you effortlessly customise your WooCommerce transactional emails using its intuitive drag-and-drop builder. 👉 MultiStep Checkout for WooCommerce: The Multistep checkout plugin helps you split the regular WooCommerce checkout process into multiple steps and create a simpler and more organized checkout experience. Happy Users of Checkout Manager Plugin captainprint (@captainprint)⭐⭐⭐⭐⭐ I had a great experience with this plugin’s customer service. I ran into an issue, and their team was very helpful. They solved my problem efficiently, and I really appreciated their support. Highly recommend! giannisdigitup (@giannisdigitup)⭐⭐⭐⭐ Fastest support ever! Not asking stupid things and not blamming other plugins for their problems. Provided me with a valid solution in minutes. Good job guys!!! amitaugma (@amitaugma) ⭐⭐⭐⭐⭐ The plugin functionally provides all the necessary tools to successfully build a clean checkout form with conditional and easy to use interface. On top of that, their support is amazing and would take the extra mile to help with any inquires. RECOMMENDED! dragoso (@dragoso) ⭐⭐⭐⭐⭐ Support is super speedy and the PRO plugin is totally awesome and works like a charm. Very happy with the purchase! Thank you guys! DCM (@bcreativos) ⭐⭐⭐⭐⭐ Great complement in both versions: Free and paid. Excellent support. Thank you very much recommended 100%. OTHER USEFUL LINKS 👉 VIEW ALL FEATURES 👉 GET DOCUMENTATION 👉 GET THEMEHIGH SUPPORT 👉 JOIN COMMUNITY 👉 FOLLOW US ON Facebook, LinkedIn, X , YouTube & Reddit.