The document provides information about securing a WordPress site, including backing up the site regularly using plugins or services, keeping the WordPress core, themes, and plugins updated, using strong passwords, enabling SSL, and only using trusted plugins and themes from reputable sources. It also recommends securing the server configuration and login process, as well as keeping your own computer secure to avoid compromising the WordPress site.
4. Themes: A Primer
• A WordPress Theme:
– Provides control over the look and presentation of
the material on your website.
• The Codex!
– Your best friend during development
– codex.wordpress.org
6. style.css
• Includes Theme Definition
/*
Theme Name: Millennium Flights
Theme URI: http://www.milenniumflights.com
Description: A custom theme for Millennium Flights, Inc.
Version: 1.0
Author: Joe Casabona
Author URI: http://www.casabona.org
Tags: blue, white, two-column, flexible-width
*/
• Keep Common Classes in mine
(rwdwp.com/12)
• RWD Tip: Put all CSS in One File
7. functions.php
• Place misc PHP functions, code, and variables
• Considered a “plugin” file for your theme
• Remember “Separation of Concerns”
– Themes should only effect display, not content or
functionality
• Uses: Actions, Filters, side-wide functions
• RWD Tip: Use this file for server-side
detection
8. index.php
• The backbone of WordPress themes
• Everything that doesn’t have its own template
file will use index.php
• Used to display a list of posts or content.
• DO NOT remove The Loop from this page
9. header.php and footer.php
• Template Files to use throughout the theme
• get_header() and get_footer()
• wp_head() and wp_footer()
12. Template Files
• Sophisticated Display Controls
• Only required files: style.css and index.php
• Custom templates down to the single post
level
• Example: Custom Post Type named“classes”
single-classes.php single.php index.php
15. Defined
• The Loop is used by WordPress to display each
of your posts. Using the Loop, WordPress
processes each of the posts to be displayed on
the current page and formats them according
to how they match specified criteria within the
Loop tags. Any HTML or PHP code placed in
the Loop will be repeated on each post
16. Essentially…
• The Loop has functions to:
– Make sure that you have posts to display
– Display those posts.
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
//print post information using template tags
<?php endwhile; ?>
<?php else : ?>
print “No posts found.”;
<?php endif; ?>
17. Template Tags
• Functions in WordPress designed to print
information about the Current Post
• Some tags include:
– the_title(), the_time(), the_content(),
the_excerpt(), the_category(), the_tags(),
the_permalink()
20. Source: Torque.io - WordPress Core is Secure –
Stop Telling People Otherwise
21. Yes … but …
The code may be secure, but there
are always things to improve
22. Backup ALL the Things
My hosting provider does that,
why should I?
23. How do I backup WordPress?
Services
– ValutPress
Plugins
– BackupBuddy
– BackWPUp
The good old fashioned way
mysqldump -udbuser mydb > db.sql
zip -r backup.zip /webfolder/ db.sql
24. Backup Best Practices
Create a backup schedule that makes sense for
your site.
Get an off-site copy
Test your backups
33. Stronger Authentication
Use strong passwords
Force Strong Passwords
Limit the number of bad logins
Login Lockdown
Use multi-factor authentication
Google Authetnicator
Duo Two-Factor Authentication
34. Always use SSL encryption
for login forms and personal info
47. If your computer is hacked,
your site could be next!
Install OS and application updates
Run antivirus software
Use encrypted protocols (HTTPS, SFTP)
Use strong passwords for everything
48. Keep your ear to the
WordPress community
The products and the issues are ever evolving.
49. Where to get the news
WPSecure.net
Sucuri’s blog
WP Updates Notifier plugin
Check out more on the NEPAWP
Resources page