Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- // Place your snippets for html here. Each snippet is defined under a snippet name and has a prefix, body and
- // description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
- // $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the
- // same ids are connected.
- // Example:
- // "Print to console": {
- // "prefix": "log",
- // "body": [
- // "console.log('$1');",
- // "$2"
- // ],
- // "description": "Log output to console"
- // }
- "if have_rows()": {
- "prefix": "irows",
- "body": ["<?php if(have_rows('$1')): $2"],
- "description": "if have_rows"
- },
- "while have_rows()": {
- "prefix": "wrows",
- "body": ["<?php while(have_rows('$1')): the_row(); $2"],
- "description": "while have_rows"
- },
- "php": {
- "prefix": "php",
- "body": ["<?php $1;?>"],
- "description": "php"
- },
- "the_field()": {
- "prefix": "tfield",
- "body": ["<?php the_field('$1');?>"],
- "description": "the_field"
- },
- "get_field()": {
- "prefix": "gfield",
- "body": ["<?php echo get_field('$1');?>"],
- "description": "get_field"
- },
- "the_sub_field()": {
- "prefix": "tsfield",
- "body": ["<?php the_sub_field('$1');?>"],
- "description": "the_field"
- },
- "get_sub_field()": {
- "prefix": "gsfield",
- "body": ["<?php echo get_sub_field('$1');?>"],
- "description": "get_field"
- },
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement