Pilo'Press
Pilo’Press is a framework plugin for WordPress. Based on ACF and ACF Extended, it allows you to create layouts among other things and use the Flexible Content field as a page builder. Pilo’Press uses Tailwind CSS for style templating which can be setup and build directly from the back-office. Please note that Tailwind CSS is not mandatory, you can choose to use it or not. Requirements This plugin requires Advanced Custom Fields PRO and Advanced Custom Fields: Extended plugins in order to work correctly. Getting started Activate Advanced Custom Fields Pro plugin Activate ACF Extended plugin Activate Pilo’Press plugin In your theme, create a pilopress folder Within the pilopress folder, create layouts subfolder Within the pilopress folder, create assets subfolder In the index.php file, add the following code: Styles, when you click on “Update & Compile”, TailwindCSS will be compiled remotely using TailwindAPI. Minified CSS files are then created under /pilopress/assets/styles.min.css and /pilopress/assets/styles-admin.min.css. You can manually enqueue those files in your theme for the front-end & the back-end, but we recommend to use automatic enqueue code above. It is possible to manually retrieve the Tailwind PostCSS & JS fields of the administration if you want to build TailwindCSS locally. To do so, you can use the following code: $tailwind_css = get_field( 'pip_tailwind_style', 'pip_styles_tailwind' ); $tailwind_config = get_field( 'pip_tailwind_config', 'pip_styles_tailwind' ); For more details, see Tailwind CSS Documentation. Customizing style To customize default Tailwind CSS styles, go to Pilo'Press > Styles from left navigation menu or top bar menu. For more details about customization, see Github Page. Add new layout In the admin menu Pilo'Press > Layouts, add a new layout Configure the layouts fields Create PHP, CSS and JS files in your theme layout folder /your-theme/pilopress/layouts/your-layout You have to name those files the same way you did in back-office settings Note: only PHP template file is require. Templating To display the content of your post, you have to use the following function: // Pilo'Press content (doesn't need 'echo') the_pip_content(); // Pilo'Press content (needs 'echo') echo get_pip_content(); Components See GitHub Page for complete example. Hooks Available hooks are list and describe in GitHub Page
Top keywords
- css9×2.41%
- tailwind9×2.41%
- content6×1.61%
- pilopress6×1.61%
- styles6×1.61%
- fields5×1.34%
- layouts5×1.34%
- tailwind css5×1.34%
- 'pip4×1.07%
- files4×1.07%
- folder4×1.07%
- page4×1.07%
WPGraphQL for ACF
WPGraphQL for Advanced Custom Fields is a free, open-source WordPress plugin that adds ACF Fields and Field Groups to the WPGraphQL Schema. Create ACF Field Groups Create ACF Field Groups and Fields using the ACF User Interface, register them with PHP, or leverage ACF local JSON. Each field group and the fields within it can be configured to “Show in GraphQL.” Query your fields with GraphQL Once your field groups and fields are configured to “Show in GraphQL,” they become available in the GraphQL Schema for querying. Supported Field Types WPGraphQL for ACF provides support for most built-in field types of ACF (free & PRO) and extends support to most field types from ACF Extended (free & PRO). Updating If you are updating from WPGraphQL for ACF v0.6.* or older, check out the Upgrade Guide For non-major version updates, automatic updates usually should work smoothly, but we still recommend you back up your site and test on a staging site. Before updating WPGraphQL for ACF, review the release notes on GitHub. We follow Semantic Versioning (Semver) for meaningful releases: MAJOR version for incompatible API changes, MINOR version for backwards-compatible functionality additions, PATCH version for backwards-compatible bug fixes. Learn more about Semver at semver.org. Support General Help Requests: For general questions and help requests, create a new topic in Github Discussions Discord Community: The WPGraphQL Discord is a great place to communicate in real-time. Ask questions, discuss features, get to know other folks using WPGraphQL. Bug Reports: Report a bug in WPGraphQL Feature Requests: Suggest an idea, feature, or enhancement for WPGraphQL. Report a Security Vulnerability: Report a security vulnerability. FAQs Does this work with ACF Extended? Yes! WPGraphQL for ACF allows you to query for (most) fields created with ACF Extended. Can I filter and sort queries by ACF Fields using WPGraphQL for ACF? At this time WPGraphQL for ACF does not support filtering or sorting queries by ACF Fields. “Meta Queries” are often very expensive to execute, so we currently do not support filtering by ACF fields out of the box, but are exploring options for supporting it without the performance penalty. I think I found a bug, where do I report it? If you think you found a bug, please open an issue on GitHub. The more details you provide in the issue, and the more clear your steps to reproduce are, the higher chances we will be able to help. Can I use ACF Free or Pro with WPGraphQL for ACF? Yes! WPGraphQL for ACF works great with ACF Free and Pro. The Pro version of ACF has some additional features, such as Flexible Content Fields, Repeater Fields and Options Pages that are supported by WPGraphQL for ACF. Do I have to use Faust.js to use WPGraphQL for ACF? No! While wpgraphql.com and acf.wpgraphql.com are built using Faust.js and Next.js, you can use WPGraphQL for ACF with any GraphQL client, including Apollo, Relay, Urql, etc. I have an ACF Extension that adds a new field type, will it work with WPGraphQL for ACF? WPGraphQL for ACF supports the field types that come with ACF (Free and PRO) as well as the field types in ACF Extended (Free and PRO). Support for additional field types can be added by using the “register_graphql_acf_field_type” API. Do I need WPGraphQL and ACF to be active to use this? This plugin is a “bridge” plugin that brings functionality of ACF to WPGraphQL. Both WPGraphQL and ACF need to be installed and active in your WordPress installation for this plugin to work. How much does WPGraphQL for ACF cost? WPGraphQL for ACF is a FREE open-source plugin. The development is sponsored by WP Engine Atlas. Does WPGraphQL for ACF support GraphQL Mutations? GraphQL Mutations are not yet supported. We are working on adding support for Mutations in the future. We are waiting for the GraphQL “@oneOf” directive to be merged into the GraphQL spec before we add support for Mutations. Does this work with Field Groups registered in PHP or JSON? Yes! You can register ACF Field Groups and Fields using the Admin UI, PHP or JSON. WPGraphQL for ACF will detect the Field Groups and Fields and add them to the GraphQL Schema. If using PHP or JSON, you will need to set the “show_in_graphql” setting to “true” to expose the Field Group and Fields to the GraphQL Schema. There might be other settings that need attention at the field group or field level that might impact the schema or field resolution. Privacy Policy WPGraphQL for Advanced Custom Fields uses Appsero SDK to collect telemetry data upon user confirmation, helping us troubleshoot problems and improve the product. The Appsero SDK doesn’t collect data by default and only starts gathering basic telemetry data when a user allows it via the admin notice. No data is collected without user consent. When you opt in, each telemetry request is sent to Appsero and a duplicate is sent in a non-blocking request to WPGraphQL-operated infrastructure at https://telemetry.wpgraphql.com (the same categories of data as described for Appsero below). Learn more about how Appsero collects and uses data.