Skip to main content

Posts

Showing posts with the label Change wordpress logo link

Using Multiple Permalink in WordPress

There time when you feel that the basic permalink settings of wordpress simply isn't enough when you want to make your url more meaningful and seo friendly. But how do we do this? There no much information on this out there as this is not something that all needs. Well, there is a very cool plugin out there that does exactly what you want. It's called   Advanced Permalinks The plugin provides advanced permalink options that allow you to: Have multiple permalink structures. Permalinks can be assigned to posts or ranges of posts 301 redirect old permalink structures (many structures are allowed) Category-specific permalinks. Posts in certain categories can be assigned a permalink structure No need to have a base to the category permalink! Change author permalinks Enable periods in permalinks - perfect for migrating old websit es.

Inserting custom content after each post programmatically

There are time when you may want to automatically display a custom text below each of your posts. You can hard-code it, but why do it when there is better way to do so using a WordPress hook. Here’s how to do. Paste the following code into your functions.php and save the file. Custom content will be inserted below each of your posts. function add_post_content($content) { if(!is_feed() && !is_home()) { $content .= ' This article is copyright © '.date('Y').' '.bloginfo('name').' '; } return $content; } add_filter('the_content', 'add_post_content'); Related Articles: Inserts Posts Programmatically to WordPress Insert Categories & Tags Programmatically to WordPress

Change the WordPress Login page logo link without plugin.

Are you making a site for your client and frustrated with the login page logo linking to the WordPress site? Well you are not the only one. But there is a very easy way to change this behavior without any plugin. All you have to do is add the following line to your functions.php file within your theme folder. add_filter("login_headerurl","the_url"); function the_url($url) { return get_bloginfo('siteurl');//return the current wp blog url } This will link the logo to your own wordpress blog. If you don't know how to change the default WordPress logo with one of your logo, then follow this post that wonderfully illustrates the same. More On The Topic: The official wordpress documentation on this can be found here . If you have any queries please use the comment form below.