Category: WordPress

Handy WordPress Functions

A collection of WordPress functions I use often. Link to Home: <?php home_url( $path_relative_to_root, $opt_scheme_http_https ); ?> <?php echo esc_url( home_url( ‘/’ ) ); ?> Include another php file: get_template_part($slug, $name); *File name separated on ‘-‘ between two inputs to function. So if named include-content-blocks.php call is: get_template_part(‘include’, ‘content-blocks’); Custom…

WP_Query – Order by multiple custom fields

The Code $args = array( ‘post_status’ => ‘publish’, ‘post_type’ => ‘board’, ‘meta_query’ => array( ‘last_name’ => array(‘key’ => ‘last_name’), ‘first_name’ => array(‘key’ => ‘first_name’), ),’orderby’ => array( ‘last_name’ => ‘ASC’, ‘first_name’ => ‘ASC’ ), ‘nopaging’ => true ); $query = new WP_Query( $args ); if ( $query->have_posts() ) : while…

How Did They Get My WordPress Username?

I currently manage over 50 WordPress websites and have the ‘Limit Login Attempts’ plugin set to send an email whenever anyone tries to log into one of these sites and fails. It doesn’t take long for a new WordPress website to go through its first brute force login attack. When…

Comparing WordPress Hosting Companies

Below are slides from my WordCamp Milwaukee 2014 presentation entitled “Comparing WordPress Hosting Companies”. I discuss my experiences hosting over 50 WordPress websites with hosting companies such as WP Engine, Flywheel, Pressable, HostGator, Site5 and SiteGround, comparing each host’s Security, Backups, Support, Speed and Price. I hope this information helps…

Unbox’s WordPress and Plugins Update Plan

WordPress runs over 20% of the web which makes it a big target for hackers. Hackers like to target well known vulnerabilities so they get the most bang for their script and it’s easy to tell if a site is running WordPress, what plugins it is using and what version…

Speaking at WordCamp Milwaukee

I am trilled to be speaking at WordCamp Milwaukee this year and look forward to sharing my WordPress experience with other developers. My talk is entitled “When and How to Build Your Own Theme”. If you know PHP, HTML, CSS and Javascript but don’t know how to make WordPress behave,…

Installing WordPress in sub directories

To install WordPress in a sub folder instead of your site root, you’ll need to make a couple changes. If you are doing a new WordPress install, you will skip this first step. To move an existing site, the site path has to be changed in all instances in your…

Disabling Trackbacks and Pings in WordPress

If you’ve started receiving suspicious trackbacks or pings from other blogs on your WordPress site, you are not alone. Like so much on the web, these useful tools have become slaves for spammers or people looking to increase their page rankings. If you would like to stop this blog spam…