WordPress has a built in function, the_meta(), for outputting all custom fields. But this function is limited in that it doesn't always output all of them. For example, it misses custom fields added by plugins which begin with an _ … [Continue reading]
Display Post Divider In Between Posts
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]
- « Previous Page
- 1
- …
- 4
- 5
- 6
- 7
- 8
- …
- 20
- Next Page »