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://themefortress.com/tips/5-things-after-installing-wordpress-8/ | |
Permalinks Structure: /%category%/%postname%-%post_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
http://themefortress.com/tips/5-things-after-installing-wordpress/8 | |
Permalinks Structure: /%category%/%postname%/%post_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
define('WP_POST_REVISIONS', false ); // turn off post revision |
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
define('AUTOSAVE_INTERVAL', 300 ); // change WP autosave interval from 60 seconds to 300 seconds |
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_posts WHERE post_type = "revision"; // where wp_posts is your WordPress table for posts |
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 a,b,c | |
FROM wp_posts a | |
LEFT JOIN wp_term_relationships b ON (a.ID = b.object_id) | |
LEFT JOIN wp_postmeta c ON (a.ID = c.post_id) | |
WHERE a.post_type = 'revision' | |
-- If for some reason you associated a revision with | |
-- a tag or a category that was then removed when the | |
-- final post was published, you will have extra entries | |
-- in other tables such as terms. |
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
Bold: [b]bold[/b] | |
Italics: [i]italics[/i] | |
Underline: [u]underline[/u] | |
Strikeout:[s]striked this out[/s] | |
Color: | |
[color="red"]named red[/color] | |
[color=#ff0000]hex red again[/color] | |
Align: |
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 reverie_comments($comment, $args, $depth) { | |
$GLOBALS['comment'] = $comment; ?> | |
<li <?php comment_class(); ?>> | |
<article id="comment-<?php comment_ID(); ?>"> | |
<header class="comment-author vcard"> | |
<?php echo get_avatar($comment,$size='40'); ?> | |
<?php printf(__('<cite class="fn">%s</cite>', 'reverie'), get_comment_author_link()) ?> | |
<?php | |
$commentator_id = get_comment(get_comment_ID())->user_id; | |
$commentator_info = get_userdata($commentator_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
function people_init() { | |
// create a new taxonomy | |
register_taxonomy( | |
'people', | |
'post', | |
array( | |
'label' => __( 'People' ), | |
'sort' => true, | |
'args' => array( 'orderby' => 'term_order' ), | |
'rewrite' => array( 'slug' => 'person' ) |
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 MailChimp Signup Form --> | |
<div id="mc_embed_signup"> | |
<form action="http://username.us2.list-manage2.com/" method="post" id="mc-embedded-subscribe-form" name="mc-embedded-subscribe-form" class="validate" target="_blank"> | |
<h2>Subscribe to our mailing list</h2> | |
<div class="indicates-required"><span class="asterisk">*</span> indicates required</div> | |
<div class="mc-field-group"> | |
<label for="mce-EMAIL">Email Address <span class="asterisk">*</span> | |
</label> | |
<input type="email" value="" name="EMAIL" class="required email" id="mce-EMAIL"> | |
</div> |
OlderNewer