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
add_action('wp_head', 'show_template'); | |
function show_template() { | |
global $template; | |
print_r($template); | |
} |
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
// http://support.advancedcustomfields.com/forums/topic/change-menu-position-of-options-page/ | |
acf_add_options_page( array( | |
'page_title' => 'Home Page Sliders', | |
'menu_title' => 'Sliders', | |
'menu_slug' => 'home-page-sliders', | |
'capability' => 'edit_posts', | |
'icon_url' => 'dashicons-images-alt2', | |
'position' => 7 |
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
Bringing machine 'default' up with 'virtualbox' provider... | |
==> default: Importing base box 'roots/bedrock'... | |
==> default: Matching MAC address for NAT networking... | |
==> default: Checking if box 'roots/bedrock' is up to date... | |
==> default: Setting the name of the VM: dewstudio_default_1405646209626_28639 | |
==> default: Clearing any previously set network interfaces... | |
==> default: Preparing network interfaces based on configuration... | |
default: Adapter 1: nat | |
default: Adapter 2: hostonly | |
==> default: Forwarding ports... |
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
http://davidwalsh.name/hide-admin-bar-wordpress | |
add_filter('show_admin_bar', '__return_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
{ | |
"comment": "http://codelight.eu/using-private-wordpress-repositories-with-composer/", | |
"repositories": [ | |
{ | |
"type": "package", | |
"package": { | |
"name": "deliciousbrains/wp-migrate-db-pro", | |
"version": "1.3.6", | |
"type": "wordpress-plugin", | |
"dist": { |
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
# editorconfig.org | |
# http://css-tricks.com/changing-spaces-tabs-sublime-text/ | |
root = true | |
[*] | |
indent_style = space | |
indent_size = 2 | |
end_of_line = lf | |
charset = utf-8 | |
trim_trailing_whitespace = true |
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
alias ga='git add' | |
alias gp='git push' | |
alias gl='git log' | |
alias gs='git status' | |
alias gd='git diff' | |
alias gdc='git diff --cached' | |
alias gm='git commit -m' | |
alias gma='git commit -am' | |
alias gb='git branch' | |
alias gc='git checkout' |
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
<?php the_field('page_subtitle'); ?> |
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
<?php $cpt = new WP_Query('post_type=POSTTYPE&posts_per_page=-1'); | |
while ($cpt->have_posts()) : $cpt->the_post();?> | |
<?php endwhile; wp_reset_query(); ?> |
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
<?php $recent = new WP_Query("page_id=21"); while($recent->have_posts()) : $recent->the_post();?> | |
<!-- content --> | |
<?php endwhile; ?> |