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
$post_id = 7; | |
echo apply_filters('the_content', get_post_field('post_title', $post_id)); | |
echo get_post_field('post_content', $post_id)); | |
echo get_post_meta($post_id, 'thesis_thumb_height', 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
http://domain.com?utm_campaign=openingsale&utm_medium=social&utm_source=facebook | |
http://domain.com?utm_campaign=openingsale&utm_medium=print&utm_source=newspaperqcode |
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 | |
$id = '123'; | |
echo get_post_field('post_content', $id); | |
// Want it formatted? | |
echo apply_filters('the_content', get_post_field('post_content', $id)); |
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
/* | |
* Thesis API: new is_template() method can be used to determine which template is currently rendering on the front end | |
* | |
* Check which Thesis template is currently running. | |
* Note: This method uses the proper template name (such as "Landing Page") | |
* Props: Girlie | |
* | |
*/ | |
public function is_template($name = '') { |
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_filter( 'excerpt_length', 'conditional_excerpt_length' ); | |
function conditional_excerpt_length($length) { | |
if ( is_front_page() ) | |
return 80; // Change value as desired | |
else | |
return $length; | |
} |
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
// ADDING CUSTOM POST TYPE (via http://mikevoermans.com/) | |
add_action('init', 'all_custom_post_types'); | |
function all_custom_post_types() { | |
$types = array( | |
// News and Events |
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.ini | |
max_input_vars = 5000 | |
suhosin.post.max_vars = 5000 | |
suhosin.request.max_vars = 5000 | |
# To see php info, create a file named info.php. | |
<?php phpinfo(); ?> |
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
Hello *|IF:FNAME|* | |
*|TITLE:FNAME|*, | |
*|ELSE:|* | |
Friend, | |
*|END:IF|* | |
Hello*|IF:FNAME|* *|TITLE:FNAME|*,*|ELSE:|*,*|END:IF|* |
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
v=spf1 a mx ip4:72.10.34.86 -all | |
http://mediatemple.net/community/products/dv/204404314/how-can-i-create-an-spf-record-for-my-domain |
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
# BEGIN WordPress | |
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteBase / | |
# BEGIN Permanent URL redirects. NB: 1st one is homepage | |
RewriteRule ^ http://newdomain/? [L,R=301,NC] | |
RewriteRule ^blog/ http://newdomain/blog/? [L,R=301,NC] | |
RewriteRule ^about/ http://newdomain/about/? [L,R=301,NC] |