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 tl_create_gallery () | |
{ | |
$postID = get_the_ID(); | |
$args = array( | |
'numberposts' => -1, | |
'order'=> 'ASC', | |
'post_mime_type' => 'image', | |
'post_parent' => $postID, | |
'post_status' => null, | |
'post_type' => 'attachment' |
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
/** | |
* Is Jetpack active? | |
*/ | |
//public static function is_active() { | |
// return (bool) Jetpack_Data::get_access_token( JETPACK_MASTER_USER ); | |
//} | |
/* modify Jetpack to work for local environment */ | |
public static function is_active() { | |
return 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
function tl_create_gallery () | |
{ | |
$postID = get_the_ID(); | |
$args = array( | |
'numberposts' => 10, | |
'order'=> 'ASC', | |
'post_mime_type' => 'image', | |
'post_parent' => $postID, | |
'post_status' => null, | |
'post_type' => 'attachment' |
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 parse_gallery_shortcode($atts) { | |
global $post; | |
$output = apply_filters('post_gallery','', $atts); | |
extract(shortcode_atts(array( | |
'orderby' => 'menu_order ASC, ID ASC', | |
'id' => $post->ID, | |
'itemtag' => 'dl', | |
'icontag' => 'dt', | |
'captiontag' => 'dd', | |
'columns' => 10, |
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
DELETE FROM wp_comments WHERE comment_approved=0 |
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
You make a plugin, then add a wp-admin.css to the folder. Here's some sample code for both the php and the css. | |
reference: http://codex.wordpress.org/Creating_Admin_Themes | |
blah-blah-admin-theme.php: | |
<?php | |
/* | |
Plugin Name: Client-Name Admin Theme | |
Plugin URI: http://techliminal.com | |
Description: Client-name Admin Theme, styling for the administration screens for Properties |
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
Example: | |
To move custom posts from Activity to Explore the Area (in this case, Airports, Transportation): | |
- wp3p_posts: get the ID for an example custom post (ex. 430) | |
change palms_activity to palms_explore for each post that needs to be moved | |
- wp3p_term_relationship: find the term_taxonomy_id by object_id (ex.430=post ID, term_taxonomy_id = 30) | |
- wp3p_term_taxonomy: change tl_activity_cat to tl_explore_cat where term_taxonomy_id (in this case, = 30) |
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
Go to Domains > Registrations | |
Find domain | |
Click the blue Whois button | |
Choose nameservers from dropdown on top of page |
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
#nav-menu li > a:after { | |
color: #888; | |
content: ' ▾'; | |
} | |
#nav-menu li > a:hover:after { | |
color: #444; | |
content: ' ▾'; | |
} |
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
jQuery(document).ready(function($) { | |
$yourFunction(){} | |
} |
OlderNewer