This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo yum update | |
sudo yum install ruby | |
sudo yum install wget | |
wget https://{bucket-name}.s3.amazonaws.com/latest/install | |
chmod +x ./install | |
sudo ./install auto | |
## bucket-name represents one of the following: | |
## aws-codedeploy-us-east-1 for instances in the US East (N. Virginia) region | |
## aws-codedeploy-us-west-1 for instances in the US West (N. California) region |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
html { | |
background: url(images/bg.jpg) no-repeat center center fixed; | |
-webkit-background-size: cover; | |
-moz-background-size: cover; | |
-o-background-size: cover; | |
background-size: cover; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git rm -r --cached . | |
git add . | |
git commit -m ".gitignore is now working" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Open the sql file in your text editor; | |
1. Search: utf8mb4_unicode_ci Replace: utf8_general_ci (Replace All) | |
2. Search: utf8mb4_unicode_520_ci Replace: utf8_general_ci (Replace All) | |
3. Search: utf8mb4 Replace: utf8 (Replace All) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<IfModule mod_rewrite.c> | |
RewriteEngine on | |
# Don't rewrite files or directories | |
RewriteCond %{REQUEST_FILENAME} -f [OR] | |
RewriteCond %{REQUEST_FILENAME} -d | |
RewriteRule ^ - [L] | |
# Rewrite everything else to index.html | |
# to allow html5 state links |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
##Git global setup | |
git config --global user.name "Yourname" | |
git config --global user.email "email" | |
##Create a new repository | |
git clone <httpslink> | |
cd directory | |
touch README.md | |
git add README.md | |
git commit -m "add README" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$categories = get_terms(array( | |
'taxonomy' => 'taxonomy-slug', | |
'hide_empty' => false, | |
'order' => 'DESC' | |
)); | |
foreach ($categories as $category) { | |
Print_r($category); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
get_terms([ | |
'taxonomy' => 'gallery-item', | |
'hide_empty' => false, | |
]); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$field = get_field_object('custom field name'); | |
$field = $field['value']; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
the_field('cpt_slug', get_the_ID()) |
NewerOlder