WordPress Ann Arbor: WP Tips and Tricks


Published on

Published in: Technology, Design
1 Like
  • Be the first to comment

No Downloads
Total views
On SlideShare
From Embeds
Number of Embeds
Embeds 0
No embeds

No notes for slide

WordPress Ann Arbor: WP Tips and Tricks

  1. 1. As Many WordPress Tips and Tricks that I can fit in a 30 minute talk <ul><li>Presentation for WordPress Ann Arbor. </li></ul><ul><li>Feb 23, 2011 </li></ul><ul><li>Twitter Hash-tag #wpa2 </li></ul><ul><li>Declan O’Neill </li></ul><ul><li>www.cake.ie </li></ul>
  2. 2. Block all WordPress Core files from compliant search engines <ul><li>Add the following code to your a robots.txt file. </li></ul><ul><ul><ul><ul><li>User-agent: * </li></ul></ul></ul></ul><ul><ul><ul><ul><li>Disallow: /wp-* </li></ul></ul></ul></ul><ul><ul><ul><ul><li>Disallow: *.php </li></ul></ul></ul></ul><ul><li>- user agent: (*) is used to target all compliant search engines. </li></ul><ul><li>- /wp-*: restricts all core files </li></ul><ul><li>- *.php: restricts all files ending with .php </li></ul><ul><li>See: http://www.cake.ie/dev/wpa2/robots.txt </li></ul>
  3. 3. TAC (Theme Authenticity Checker) <ul><li>Scan all of your theme files for potentially malicious or unwanted code. </li></ul><ul><li>http ://wordpress.org/extend/plugins/tac/ </li></ul><ul><li>Hat Tip: WPMU </li></ul>
  4. 4. Fix Broken / Outdated Links <ul><li>Broken Link Checker </li></ul><ul><li>http ://wordpress.org/extend/plugins/broken-link-checker/ </li></ul><ul><li>For offline link-checking analysis, check out Xenu’s Link Sleuth </li></ul><ul><li>http ://home.snafu.de/tilman/xenulink.html </li></ul>
  5. 5. WordPress Updates <ul><li>** Back up First! </li></ul><ul><li>Plugin - http://www.wordpress.org/extend/plugins/wp-db-backup/ </li></ul>
  6. 6. Creating and Using Custom Menus <ul><li>Dashboard > Appearance > Menus </li></ul><ul><li>Dashboard > Appearance > Widgets > </li></ul>
  7. 7. Enable MultiSite
  8. 8. Page Specific Custom Headers <ul><li>Example: http://www.cake.ie/dev/wpa2/?page_id=62 </li></ul>Just create a banner image that is 940 x 198 pixels. Then follow the on-screen prompts to choose the image from your computer and upload it or choose it from one of the images already in your Media Library. Once the image has successfully been uploaded, look underneath the sizing options, and click “Use as featured image”. Don’t forget to click Update on your post/page to save your changes.
  9. 9. Using WordPress as a CMS <ul><li>Dashboard > Settings > Reading </li></ul><ul><li>Front page displays: Static Page </li></ul><ul><li>Select Default Front page - Usually “Home” </li></ul><ul><li>Select Default Homepage - Usually “News” or “Blog” or whatever you want to call it </li></ul>
  10. 10. Change the Default Size of the Page Header Image (Twenty Ten Theme) <ul><li>Dashboard > Appearance > Editor </li></ul><ul><li>Open “Theme Functions” (functions.php) </li></ul><ul><li>Find the following code: </li></ul><ul><li>Change 198 to the new preferred height - click “Update File” </li></ul>
  11. 11. Change The Default Navigation Background Color (Twenty Ten Theme) <ul><li>Dashboard > Appearance > Editor </li></ul><ul><li>Open “Stylesheet” (style.css) - Find this code </li></ul><ul><li>Change #000 to your color of choice. </li></ul>Default White / #fff Color to Hex Converter - http://www.colorschemer.com/online.html Get Hex Color from an Image - http://kuler.adobe.com/#create/fromanimage (Requires Flash)
  12. 12. Default URLs vs. “Pretty” Permalinks <ul><li>Dashboard > Settings > Permalinks </li></ul><ul><li>** Pick one Permalink setting and Stick with it. </li></ul><ul><li>Permalink Types: http://codex.wordpress.org/Using_Permalinks </li></ul>
  13. 13. Comments <ul><li>Dashboard > Settings > Discussion: </li></ul><ul><li>Users must be registered and logged in to comment </li></ul><ul><li>Automatically close comments on articles older than (90) days </li></ul><ul><li>E-mail me whenever anyone posts a comment </li></ul><ul><li>Before a comment appears: An administrator must always approve the comment. </li></ul><ul><li>Comment Blacklist </li></ul>
  14. 14. Duplicate Content Issues (One Post - many different views) <ul><li>Blog Post: http://website.com/blog/i-like-cheese/ </li></ul><ul><ul><li>Category view: http://website.com/blog/category/food/ </li></ul></ul><ul><ul><li>Tag view: http://website.com/blog/tag/cow/ </li></ul></ul><ul><ul><li>Tag view: http://website.com/blog/tag/camembert/ </li></ul></ul><ul><ul><li>Tag view: http://website.com/blog/tag/parmesan/ </li></ul></ul><ul><ul><li>Daily archive view: http://website.com/blog/2011/02/23/ </li></ul></ul><ul><ul><li>Monthly archive view: http://website.com/blog/2011/02/ </li></ul></ul><ul><ul><li>Yearly archive view: http://website.com/blog/2011/ </li></ul></ul><ul><ul><li>Author archive view: http://website.com/blog/author/your-name/ </li></ul></ul>
  15. 15. Duplicate Content Issues [cont…] <ul><li>Use robots.txt directives – to block Categories / Tags or Archives </li></ul><ul><li>Use Canonical Meta Tags – to specify the original URL. </li></ul><ul><li>Use Excerpts for Posts – Only display Post teasers on Archive pages. </li></ul>
  16. 16. WordPress (Version 3.1) http://codex.wordpress.org/Version_3.1 <ul><li>Whats New?- </li></ul><ul><li>Admin Bar </li></ul><ul><li>Streamlined Writing Interface </li></ul><ul><li>Post Formats : http://codex.wordpress.org/Post_Formats </li></ul><ul><li>Exporter/Importer Overhaul </li></ul><ul><li>Custom Content Type Improvements: http://codex.wordpress.org/Post_Types </li></ul><ul><li>Advanced Queries </li></ul><ul><li>Refreshed Blue Admin Color Scheme </li></ul>