وضاحت
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:
<a href="{data.setting.home}">{data.setting.blogname}</a>
- 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}
بلاڪس
واحد: هي پلگ ان 1 بلاڪ مهيا ڪري ٿو.
- Anything Block
جائزا
تعاون ڪندڙ & ڊولپرز
“Anything Block” اوپن سورس سافٽ ويئر آهي. ھيٺين ماڻھن ھن پلگ ان ۾ حصو ورتو آھي.
تعاون ڪندڙجمع: “Anything Block” 2 جڳهن ۾ ترجمو ڪيو ويو آهي. ترجمي ڪندڙن جي مهرباني سندن تعاون لاءِ.
ترجمو ڪريو “Anything Block” توهان جي ٻولي ۾.
ڊولپمينٽ ۾ دلچسپي؟
ڪوڊ براؤز ڪريو، چيڪ ڪريو SVN مخزن، يا رڪنيت حاصل ڪريو ڊولپمينٽ لاگ پاران RSS.