ACF Recent Posts Widget
ACFRPW adds a new widget to the Appearance -> Widgets -> ACF Recent Posts Widget. Most of the fields are quite obvious, you can choose from a set of settings to display the posts from. Each setting alters the amount and type of posts listed in the sidebar. Available Settings The widget supports the following settings: Widget Title Custom Widget container CSS class Option to ignore sticky posts Search keyword query Id based post exclusion Date Display, Date Modified, Relative and Custom Date Format specifiaction Listing posts from specific date period (start and end) Listing posts with specific password, listing password protected posts only or excluding these Post Type selection Post Formats selection Post Statuses selection Listing posts limited to author via author id Order specifiaction (ASC or DESC) Orderby specification (ID, Author, Title, Date, Modified, Random, Comment Count, Menu Order, Meta Value, Meta Value Numeric) Meta Key specifiaction (if Meta Value or Meta Value Numeric were chosen as orderby rule) Meta Comparison selection Meta Value Specification (for the Meta Comparison selection) Category limitation Tag limitation Id based custom taxonomy limitation Operator specifiaction for the above rules Number of posts to show Number of posts to skip Thumbnail display, thumbnail size (width, height), thumbnail alignment, default thumbnail Excerpt display, its word limit, its readmore text (occurs only if the amount of words exceeds the limit) Custom HTML to display before the loop Custom HTML to display after the loop Custom HTML to display before each posts. It supports custom meta keys and ACF fields Custom HTML to display after each posts. It supports custom meta keys and ACF fields Custom HTML to display for no posts found Custom and default CSS Custom HTML templates ACF supported fields The plugin has been tested with ACF 6 (Free and Pro). The plugin supports the following ACF fields: Text Textarea Number Email Password Wysiwg Editor Image File No other fields have been tested and are supported at the moment. Shortcode From version 4.4 the plugin supports shortcode embeds. Given the amount of options and their specific names (as in shortcode attributes) the shorcode builder has been introduced see 7th and 8th screenshots for the reference. You’ll see a popup once clicked on ACFRPW button which gives one an ability to automatically set up the shortcode code for you. The rest follows all of the options specified here. To use the shortcode one needs to have the WordPress editor enabled for the current page / post type. In case it was disabled (say via ACF) the button won’t appear. Creating Custom Templates From version 4.3 the plugin supports custom templates. To make usage of these one needs to make a copy of all the files found in the acf-recent-posts-widget/templates directory and copy them over to the active template directory to acfrpw subdirectory. The approach is similar to the way WooCommerce plugin works and has it’s drawbacks. With every new feature the files may be outdated. Similarly to the widget template files, a separate, custom markup can be created for the shortcode build post listing. Copy the acf-recent-posts-widget/template files to acfrpw-blog directory created inside your active theme directory. Template files There are 3 main template files: loop-after.php (which displays the markup after each of the posts and closes the markup container) loop-before.php (which displays the markup before each of the posts and opens the markup container) loop-inner.php (which is enqueued for each of the posts separatelly and contains the markup of every single post) Usage The usage is quite advanced hence each template file contains a quite detailed documentation on how to use it. First of all the template files mustn’t have the global variables removed. Each of these variables stores the widget settings, which are then used to generate the code. Second of all the variable names are unobvious, loop-inner.php template file contains a list of all the names used, which are then extracted and available as php variables. Different template per widget / sidebar The templates allow one to adjust the markup of each single widget. One needs first to verify the widget id used, which may then be referenced. The variable which stores the widget id is $acf_rpw_args[‘widget_id’]. Dumping the value in the template is the best way to find out which automatic id has been created for your widget. The best way to handle the templates is to learn from their code. My personal suggestion is to copy over the templates to the current theme and work directly on them, doing one change at a time. The templates require learning curve to use and there’s no single answer to everyones problem. Complex usage This section covers plugin complex usage for advanced user willing to have more control over the behavior of the plugin as well as explains uncommon functionalities. Using the HTML textarea fields These sections might not be obvious. The HTML or text before / after the whole loop setting is an area where you can specify custom HTML markup to be added before / after the whole posts list. The HTML or text before / after each post is an area where you can not only specify custom HTML, but you are also given an ability to print any meta key or certain ACF fields (see ACF supported fields) Meta Key Name / ACF Usage These fields need to be wrapped inside the {meta name} or {acf field_name} tags (which are similar to shortcodes). The plugin will then parse these fields and print their according value. Say we have a custom ACF field of type text, for which the Field Name is “text”. To print its value one has to use [acf text] inside the befoe / after each post textarea. A similar solution applies to the meta key. Meta Value Usage The Meta Value field supports an array of elements, so that all of the meta_compare parameters could be used. To do so, please specify the two parameters separated by semicolon, for instance: 1234;12345. The plugin will convert these into an array and apply the proper operation for the two. Whatsmore the [date] shortcode can be used here. It takes the timestamp paramater as an argument, which is required – the possible arguments are the same as for the function described here: http://php.net/manual/pl/function.strtotime.php. For instance [date +1 day] would generate the tomorrow date in “Ymd” format. This can be used with custom meta field date. Plugin Filters The are several filters that can be used to enchance the plugin programatically: ‘acf_rwp_query’ which gives one the ability to filter the query applied to each widget. ‘acp_rwp_before’ which gives on the ability to filter the Front End output of the plugin before each post. There are two hooks attached here already which allow usage of the [acf] and [meta] shortcodes. ‘acp_rwp_after’ which gives on the ability to filter the Front End output of the plugin after each post. There are two hooks attached here already which allow usage of the [acf] and [meta] shortcodes. ‘acf_meta_value’ which filters the meta_value query parameter. Check the acf_widget_widget file for the arguments and use cases. Dependencies ACF (optional) Widget Base Class (included) Shortcode popups generator (included) Other Online Demo Plugin site and Docs Plugin Development Survey Languages Supported English (default) Polish (since May 11 2015) French (since June 29 2015), by wolforg, standalone source Spanish (since July 30 2023)
Top keywords
- meta22×1.75%
- acf20×1.59%
- custom19×1.51%
- posts17×1.35%
- widget17×1.35%
- value12×0.96%
- fields11×0.88%
- html11×0.88%
- post11×0.88%
- template10×0.80%
- date9×0.72%
- display9×0.72%
CubeWP Framework
CubeWP Framework is to WordPress developers what Iron Man suit is to Tony Stark. The CubeWP Framework is the ultimate dynamic content solution for WordPress. Say goodbye to complex coding and bring your ideas to life in record time. Streamline your end-to-end WordPress project development and save time and money with the all-in-one CubeWP Framework. Discover both free and premium add-ons for the CubeWP Framework to enhance your site with more advanced features and functionality. 10 Reasons to Choose CubeWP More power, more features, more value for Free. Rapid end-to-end project development Effortless dynamic content creation. Shortcode generation and insertion. Works with current or new sites. Not dependent on any specific page builders. Advanced Integration with Elementor and WP Bakery. Not dependent on any specific Theme. Lightweight and optimized for speed and SEO. Range of powerful add-ons available. Core Features Overview Create Custom Post Types Create Custom Taxonomies Types Custom Fields Repeatable Field Groups Relationship Fields Search Filter Search Form One-Click Export & Import Display any posts as markers on a Map ⭐ Custom Post Type (Full WordPress default options) Custom post types allow you to create custom content types for your WordPress site beyond the default options of posts and pages. For example, if you want to build a movie database like IMDB, you could use a custom post type called ‘Movies’ to store and display information about individual movies. This is especially useful when the default post types don’t meet the needs of a specific industry or niche. With custom post types, you have the flexibility to create content that is tailored to your specific needs. ⭐ Custom Taxonomy (Full WordPress default options) Organize your custom post types with custom taxonomies to improve search, filtering, and data structure on both the front and back end of your site. Using custom taxonomies, you can group your custom post types in a way that makes it easier to find and access the content you need. ⭐ Custom Fields Custom fields allow you to add extra details and customization to your post types and taxonomies, giving you greater control over your advanced website projects. The CubeWP framework includes 25 field types to choose from, giving you plenty of options for adding custom fields to your site. 25 Custom Fields Types included. Text Numbers URL Email Textarea WYSIWYG editor Image Gallery File oEmbed Drop-down Checkboxes Radio buttons Switch Range Color Picker Date/time picker Date picker Time picker Post Taxonomy User Repeatable Field Set Password Google Address Option to pin Google Address to Archive Map ⭐ Rest API (Custom Fields) CubeWP Custom Fields now supports the WordPress REST API, allowing you to view and manage custom fields for post types, users, and taxonomies using standard WP REST API endpoints. This feature makes it easier for developers to view and modify custom field data on their site All Other Custom Field Features Custom Fields for Post Types Custom Fields for Taxonomies Custom Fields for User Roles Custom Fields Groups Custom Field Group Order Duplicate Custom Fields and Groups Custom Fields association with Post Types Custom Fields conditional with Taxonomies Default Value Place Holder Field Validation Custom Validation Error Message Multi-Optional Fields separate input for “value” and “label” Presentation UI Custom Class Custom ID Field Container Class Conditional Logic are based on the values: Logics: is equal to is not equal to is empty is not empty Examples: If Field A is a drop-down field and has value as ABC and 123 and Field B has set a conditional logic, if Field A has a value equal to ABC only then display Field B. Relationship Fields Posts Taxonomies Users Autocomplete option available ⭐ Drag and Drop Search Forms Builder Build search forms for any Post Types Layout Control (5 Columns) Easily set field size with one-click Search Fields Keyword Fields Default or Custom Taxonomy Custom Fields (CubeWP Frontend Pro) Search Form Settings Form Container Class Form Class Form ID Set a Search Result page Taxonomy Settings Label Input Class Container Class Placeholder Display UI Drop-down Multi Drop-down Checkboxes Select 2 UI (UI library) Custom Field Settings (Frontend Pro Feature) Label Input Class Container Class Get Shortcode and use anywhere. ⭐ Drag and Drop Search Filter Builder Build search filter for any Post Types Search Filters Keyword Fields Default or Custom Taxonomy Custom Fields (CubeWP Frontend Pro) Search Filter Settings Form Container Class Form Class Form ID Taxonomy Settings Label Input Class Container Class Placeholder Display UI Drop-down Multi Drop-down Checkboxes Select 2 UI (UI library) Custom Field Settings (Frontend Pro Feature) Label Input Class Container Class Default filter display on Archive page or Search result page Custom Shortcodes * For complete Filter Result page * For only Filter Fields * For only Filter Breadcrumb * For only Post Card layout switcher * For only Filter result Map (Archive Map) * For only Post Results on Archive using Filter ⭐ Frontend Dynamic Content Display without Coding Default Post Type’s Single Page and Archive Page with all custom fields data Posts Widget with Custom Post Types Taxonomy Widget with Custom Taxonomies Post Elements and Taxonomy Elements for Page Builders (Elementor and WP Bakery) Elementor Tags (Free Elementor) of CubeWP Custom Fields ⭐ Powerful Developer-Friendly Settings Easily create any type of fields in CubeWP Settings. Custom Actions Hooks and Filters available to add your fields and complete sections into CubeWP settings. ⭐ One-Click Export & Import One-Click Export CubeWP Custom Post Types CubeWP Custom Taxonomies CubeWP Post Type Custom Fields CubeWP Taxonomy Custom Fields CubeWP User Custom Fields CubeWP Search Forms CubeWP Filter Forms CubeWP Post Types Forms (Pro) CubeWP User Registration Forms (Pro) CubeWP User Profile Forms (Pro) CubeWP Single Post layout (Pro) CubeWP User Dashboard (Pro) One-Click Import Imports only CubeWP exported file. ⭐ FREE EXTENSION ⭐ CubeWP Forms CubeWP Forms is a free extension for the CubeWP Framework that lets you easily build professional-looking contact forms, lead forms, feedback forms, and other types of forms for your website using a drag-and-drop form builder. In addition to serving as a simple contact or lead form, CubeWP Forms can also be used for newsletter subscriptions as it’s already integrated with MailChimp. 🎁 Bonus! Includes 10+ form templates with a dozen different styles to kickstart. CubeWP Wallet CubeWP Wallet is a feature-rich plugin designed primarily to integrate a wallet system into a WordPress themes or websites. Easily enable transactions to be added to a user’s wallet, provide withdrawal functionality, and even implement commission charges. CubeWP Social Login CubeWP Social Login is a powerful add-on for the CubeWP Framework that allows users to sign in and sign up using their Facebook and Google accounts. It also provides the option to connect existing accounts with these two popular social media platforms. CubeWP Bulk Import CubeWP Bulk Import Plugin is a user-friendly tool that simplifies content import in WordPress. It seamlessly handles large-scale imports of posts, pages, custom post types, taxonomies, and media files. CubeWP Post Claim CubeWP Claim is a versatile plugin designed to add a post claim feature to your dynamic WordPress website. You can offer users the ability to claim ownership of posts, ensuring content integrity. ⭐ PREMIUM EXTENSIONS ⭐ Do you want admin access to try our premium extensions? Click-here to create an instant sandbox – Powered by DemoWP.io CubeWP Frontend Pro With CubeWP Frontend Pro, streamline your workflow by replacing multiple plugins and manual coding. This robust extension empowers you to create custom frontend forms, layouts, and dynamic content effortlessly. Advanced Search Builder: Enhance your search capabilities by adding various custom fields. Advanced Filter Builder: Expand filtering options with all available custom fields. User Signup Form Builder: Craft tailored registration forms for different user roles. User Profile Form Builder: Create personalized profile forms for diverse user roles. Post Types Form Builder: Develop front-end submission forms for any post type. Single-post Template Editor: Customize post details with a drag-and-drop layout builder. User Dashboard Builder: Easily construct custom user dashboards based on roles. Post Loop Generator: Gain full control over post grids for unique content presentation (HTML/CSS skills required). CubeWP Payments Enable monetization via different revenue channels with WooCommerce once you have built your website. CubeWP Inbox The CubeWP Inbox Pro add-on lets vendors respond to messages from their website without having to leave the site. CubeWP Reviews This extension enables users to share their thoughts, opinions, and experiences by posting reviews and multi-criteria ratings. CubeWP Booster The Ads Booster feature within CubeWP Booster allows users to run targeted ad campaigns to boost their posts on a Pay-per-Click (ppc) or Pay-per-Day (PPD) basis. CubeWP Booking CubeWP Booking is a 3-in-1 Booking plugin, providing all necessary booking features including free or paid booking needs or build more advanced marketplaces. ⭐ PREMIUM THEMES ⭐ To kickstart an advanced website or web-app you can get all access to our premium themes library. Streetwise Streetwise is a WordPress Real Estate theme developed with the CubeWP Framework. It draws inspiration from top real-world real-estate websites. YellowBooks YellowBooks is a WordPress directory theme developed with the CubeWP Framework. It draws inspiration from top real-world directory websites. CLX CLX is a WordPress Classified Ads theme developed with the CubeWP Framework. It draws inspiration from top real-world classified ads websites. Dubified Dubified is a WordPress Classified Ads theme developed with the CubeWP Framework. It draws inspiration from top real-world classified ads websites. Here are a few guides to quickly get you started with CubeWP and creating your own WordPress custom fields: CubeWP Documentation CubeWP Developer Guides