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 | |
################################################################################ | |
// Hide Retail Therapy Custom Post Types | |
################################################################################ | |
function remove_retailtherapy_menu_links() { | |
remove_menu_page( 'edit.php?post_type=features' ); | |
remove_menu_page( 'edit.php?post_type=partners' ); | |
remove_menu_page( 'edit.php?post_type=portfolio' ); | |
remove_menu_page( 'edit.php?post_type=services' ); |
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
function allow_my_post_types($allowed_post_types) { | |
$allowed_post_types[] = 'my_post_type'; | |
return $allowed_post_types; | |
} | |
add_filter( 'rest_api_allowed_post_types', 'allow_my_post_types'); |
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
#!/bin/bash | |
# Input database name | |
echo "---" | |
echo "wpinstall.sh - A WordPress installation shell script" | |
echo "by Rutger Laurman" | |
echo "---" | |
echo "- Requires WP-CLI, make sure you install that first (http://wp-cli.org/)" | |
echo "- Check file for configurations" | |
echo "- Downloads, configures, installs WordPress, default theme and plugins" |
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
#!/bin/bash | |
# Usage: basic-install [OPTIONS] file | |
# | |
# Index: | |
# | |
# 0.- Initial Setup and Functions | |
# 1.- Set your server correctly | |
# 2.- Install latest WordPress version | |
# 3.- Set up anti-spam and security measures |
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
$photon_removed = remove_filter( 'image_downsize', array( Jetpack_Photon::instance(), 'filter_image_downsize' ) ); | |
// Call wp_get_attachment_image(), wp_get_attachment_image_src(), or anything else that ultimately calls image_downsize() | |
if ( $photon_removed ) | |
add_filter( 'image_downsize', array( Jetpack_Photon::instance(), 'filter_image_downsize' ), 10, 3 ); |
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 | |
function get_localseo_phone() { | |
$localseo = get_option('wpseo_local'); | |
echo '<a href="tel:' . $localseo["location_phone"] . '" >' . $localseo["location_phone"] . '</a>'; | |
} |
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 wp_list_pages('title_li=&child_of='. $post->ID .'&sort_column=post_title'); ?> |
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 | |
/** Replace the standard loop with our custom Locations loop */ | |
remove_action( 'genesis_loop', 'genesis_do_loop' ); | |
add_action( 'genesis_loop', 'wpseo_locations_archive_loop' ); | |
function wpseo_locations_archive_loop() { | |
echo '<h1>Locations</h1>'; | |
echo '<div class="entry-content"><p>Your intro text here.</p></div>'; | |
$args = array( |
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
/*================================================== | |
= Bootstrap 3 Media Queries = | |
==================================================*/ | |
/*========== Mobile First Method ==========*/ | |
/* Custom, iPhone Retina */ | |
@media only screen and (min-width : 320px) { | |
} |
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
.gform_wrapper { | |
ul { | |
@extend .list-unstyled; | |
} | |
li { | |
@extend .form-group; | |
} |
OlderNewer