Daily Quotes

When I do good, I feel good. When I do bad, I feel bad. That's my religion. ― Abraham Lincoln

Minnesota

Today
It is forcast to be Clear at 10:00 PM CDT on May 21, 2012
Clear

77°/54°

WordPress WP-Print usage instructions

Usage Instructions

Open wp-content/themes//index.php. You may place it in single.php, post.php, page.php or yourtheme.php.

Find:

Add Anywhere Below It:

If you DO NOT want the print link to appear in every post/page, DO NOT use the code above. Just type in:

into the selected post/page content and it will embed the print link into that post/page only.

The first value is the text for printing post.
The second value is the text for printing page.

Default: print_link(”, ”)

Alternatively, you can set the text in ‘WP-Admin -> Settings -> Print’.
Go to ‘WP-Admin -> Settings -> Print’ to configure the style of the print text link.

If you do not want to print a portion of your post’s content, do the following:

The text within donotprint tags will not be displayed when you are viewing a printer friendly version of a post or page.

WP-Print will load ‘print-css.css’, ‘print-posts.php’ and ‘print-comments.php’ from your theme’s directory if it exists. If it doesn’t exists, it will just load the respective default file that comes with WP-Print. This will allow you to upgrade WP-Print without worrying about overwriting your printing styles or templates that you have created.

WordPress enable page excerpts

Placing this php code within the wordpress functions.php file in your theme will enable excerpts for pages.

WordPress shortcodes

This is the most simple of wordpress shortcodes. Placing [mysite] within your post will be replaced by the hyperlink within the mysite function. Place this code within the functions.php of your wordpress theme.

WordPress prevent access to wp-admin

Adding this code to your functions.php will redirect subscribers away from wp-admin to the home page.

WordPress increasing WYSIWYG editor height

Adding this PHP code to the functions.php of your wordpress theme will increase the height of your WYSIWYG editor.

WordPress deny spambots from comments

Adding this to your .htaccess will help keep bots from posting comments on your wordpress blog, be sure to change yourdomain.com to your website address.

WordPress protect wp-config with .htaccess

Adding this to your .htaccess will prevent access to your wp-config.php file.

WordPress notify members on new posts

Adding this PHP code snippet to the functions.php of your wordpress theme will notify users of new posts. Please note that this snippet is best used for low volume sites. Large websites should consider alternative options.

WordPress customize admin menu order

Adding this PHP code to the functions.php of your wordpress theme will allow you to customize the order of the admin menu items.

WordPress custom admin footer

Adding this PHP code to the functions.php of your wordpress theme will allow you to add a custom admin footer.

WordPress add image sizes

Adding this PHP code to your functions.php will allow for additional images sizes within your theme.

WordPress add pagination

Add the first block of code to the functions.php of your wordpress theme, then just add the my_paginate_links() function in the location you wish to have your pagination appear.

Template: