Right before the closing of the The Loop, insert this code: <?php if (($wp_query->current_post + 1) < ($wp_query->post_count)) { echo '<div class="post-item-divider">Post Divider</div>'; } ?> This will create … [Continue reading]
Disable Automatic Formatting Using a Shortcode
function my_formatter($content) { $new_content = ''; $pattern_full = '{(\[raw\].*?\[/raw\])}is'; $pattern_contents = '{\[raw\](.*?)\[/raw\]}is'; $pieces = preg_split($pattern_full, $content, -1, … [Continue reading]
Disable Automatic Formatting
Add to functions.php file remove_filter('the_content', 'wptexturize'); remove_filter('the_excerpt', 'wptexturize'); remove_filter('comment_text', 'wptexturize'); remove_filter('the_title', 'wptexturize'); the wptexturize function is responsible … [Continue reading]
Customize Login Page
You know, the one typically at yoursite.com/wp-login.php. These are things you would put in the active theme's functions.php file. Change the Logo Is the WordPress logo by default, this changes the file path of that image. Change file path and file … [Continue reading]
Customize Comments Markup
In a typical WordPress theme you output the entire list of comments for a Post/Page by using the function wp_list_comments(). This doesn't offer much by the way of customizing what HTML markup gets generated for that comment list. To write your own … [Continue reading]