https://github.com/progressplanner/anything-block
Print any kind of data, any way you want it.
https://github.com/progressplanner/anything-block
Last synced: 10 months ago
JSON representation
Print any kind of data, any way you want it.
- Host: GitHub
- URL: https://github.com/progressplanner/anything-block
- Owner: ProgressPlanner
- License: mit
- Created: 2020-04-12T15:42:52.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2023-10-17T10:27:13.000Z (over 2 years ago)
- Last Synced: 2025-09-05T23:49:24.787Z (10 months ago)
- Language: PHP
- Size: 1.77 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 10
-
Metadata Files:
- Readme: readme.txt
- License: LICENSE
Awesome Lists containing this project
README
=== Anything Block ===
Contributors: aristath
Tags: blocks, gutenberg blocks, gutenberg, editor
Requires at least: 5.0
Tested up to: 6.4
Stable tag: 1.0.3
Requires PHP: 5.6
License: MIT
License URI: https://opensource.org/licenses/MIT
Print any kind of data, any way you want it.
== Description ==
With the Anything Block you can print values stored in settings, post-meta and even theme-mods.
Start typing in the "Output HTML" field of the block and your HTML will be rendered directly. You can use `{data}` as a placeholder for your saved data.
Used in conjunction with the Gutenberg Full-Site-Editing experiment this block can be used to add various data to your templates. In WooCommerce or EDD are installed on the site, it can be even used to create custom templates for your products using the post-meta.
== Examples ==
* Print the site-name: `{data.setting.blogname}`
* Print a link to the site-home, with the site-name as text: `{data.setting.blogname}`
* Print the post-ID: `{data.post.ID}`
* Print a theme-mod: `{data.themeMod.my_theme_mod}`
* Print a post-meta: `{data.post.meta.my_post_meta}`