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 remove_editor() { | |
if (isset($_GET['post'])) { | |
$id = $_GET['post']; | |
$template = get_post_meta($id, '_wp_page_template', true); | |
if($template == 'template_name.php'){ | |
remove_post_type_support( 'page', 'editor' ); | |
} | |
} | |
} |
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 get_header(); the_post(); ?> | |
<!-- content --> | |
<div id="content" class="left"> | |
<?php display_breadcrumbs() ?> | |
<div class="post"> | |
<?php display_title(); ?> | |
<div class="entry"> | |
<?php the_content(); ?> | |
</div> | |
</div> |
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
ps -e | grep [s]sh-agent // see if agent is running | |
ssh-agent // see if agent is running | |
ssh-add -l // list keys | |
ssh-keygen -t dsa -f ~/.ssh/id_dsa -C "[email protected]" // add key id_dsa ***MAKE A NOTE OF THE PASSCODE!*** | |
ssh-add ~/.ssh/id_dsa // add keys to agent | |
ssh-add ~/.ssh/id_dsa.pub | |
ssh -T [email protected] -v // check to see if connection to Bitbucket is working | |
// If ssh-add returns "Could not open a connection to your authentication agent." error. | |
exec ssh-agent bash |
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
.class-name { | |
-khtml-css3-property: 3px; | |
-moz-css3-property: 3px; | |
-webkit-css3-property: 3px; | |
css3-property: 3px; | |
} |
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(){} | |
} |
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
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
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
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
DELETE FROM wp_comments WHERE comment_approved=0 |