git rm -r --cached . && git add . && git commit -am "Remove ignored files"
- Switch to the master branch
- Run this command:
[text text class:classname class:otherclassname placeholder "placeholder"] | |
[email* email placeholder "Email Address"] | |
[url* url placeholder "http://..."] | |
[tel* tel placeholder "Phone no."] | |
[range* number-slider min:0 max:100 placeholder "Ammount"] | |
[number* number-spinbox min:0 max:100 placeholder "Ammount"] |
<?php | |
$args = array( | |
'post_type' => array('post'), | |
'posts_per_page' => 16 | |
); | |
?> | |
<?php | |
/** | |
* https://developer.wordpress.org/reference/functions/get_posts/ | |
* https://codex.wordpress.org/Template_Tags/get_posts |
ACF PRO stubs also installed other dependencies like WP stubs.
composer require php-stubs/acf-pro-stubs
If you're not installing the ACF stubs, add the WP stubs using the below command:
// https://grack.com/blog/2015/01/09/abusing-css3-selectors/ | |
// https://grack.com/assets/2015/01/nth-child/image-count.html | |
/* One */ | |
img:only-child { | |
max-width: 100%; | |
} | |
/* Two */ |
pbcopy < ~/.ssh/id_rsa.pub |
<?php | |
add_action( 'init', 'my_custom_post_types_init', 0 ); | |
function my_custom_post_types_init() | |
{ | |
/** | |
* Register the post types | |
*/ | |
$my_post_types = array( | |
'property' => array( | |
'post_type_name_singular' => 'Property', |
The documentation list all defaults and possibilities.
Stackoverflow // Remove from the remote
git push --delete origin YOUR_TAG_NAME
Stackoverflow // Remove from local
git tag -d YOUR_TAG_NAME