3567 readersIf you have posts that include the nofollow attribute on links, you may at some point decide to remove them. By default, WordPress doesn’t insert nofollow attributes in post content, but there are a variety of plugins that will insert nofollow into all links in post content. Or perhaps you have been manually adding nofollow
1952 readersWordPress allows using a function, to simple redirect to a URL, the function wp_redirect() enables to specify an address and a status. This makes it easy to realize a forward even in the backend of WordPress. Two different examples will illustrate this. The difference lies in the query of the URL, which will be checked.
718 readersThanks to our post New Ideas For 2010? Now It’s Your Turn! we got an email form one of our loyal sponsors Chris Coyier. Hey WP Engineer folks! I have a little issue I'm trying to resolve on CSS-Tricks, regarding comments. In my discussion settings, I have it set to automatically turn off comments on
4425 readers
Just a few updates to this including one courtesy of Cliff Paulick’s suggestion to check if post thumbnails are supportsed first to avoid errors. I also define a default image size and of course included both posts and pages in this snippet.( example screenshot )PHP
if (function_exists( 'add_theme_support' )){
add_filter('manage_posts_columns', 'posts_columns', 5);
3473 readersHTML in comments can be a good things, but many times people abuse it, for example by inserting links. In this recipe, I'll show you how you can automatically get rid of any HTML entered in your post comments.Looking for WordPress hosting? Try WP Web Host. Prices starts at $5/month and you can try it
9539 readers
PHP
add_filter('manage_posts_columns', 'posts_columns_id', 5);
add_action('manage_posts_custom_column', 'posts_custom_id_columns', 5, 2);
add_filter('manage_pages_columns', 'posts_columns_id', 5);
add_action('manage_pages_custom_column', 'posts_custom_id_columns', 5, 2);
function posts_columns_id($defaults){
$defaults['wps_post_id'] = __('ID');
return $defaults;
}
function posts_custom_id_columns($column_name, $id){
if($column_name === 'wps_post_id'){
echo $id;
3932 readersFor years, Flash was the only solution to display a dynamic chart on a website. But thanks to modern techniques, the dying Flash isn't needed anymore. In this tutorial, I'll show you how easy it is to transform a basic HTML table into a profesionnal looking chart using visualize.js, a very useful jQuery plugin.Like CatsWhoCode?
3565 readersThe titles of pages are controlled by the <title> tag in the <head> section of a website. They are important for all kinds of reasons. Telling the user where they are. The name of the page when bookmarked both locally and socially. They are important for SEO.
So how do we typically handle page
3975 readersYou don't always want to login in WordPress - so I've turned off the login for my local development environment, since I don't need it. So far I know two ways how to do this, which I want to introduce you briefly. Decide for yourself which is the right way for you if you don't
2936 readersI like the idea of shutting off comments after a certain number of days. Here on Digging Into WordPress we do it after 90. After that kind of time, the “community” of the discussion is long over. I think a good practice for turning off comments is to instead leave a message informing visitors that