A Sample Custom Archive Template for Staffer

Staffer was made to be compatible with most WordPress themes, and its custom content-wrapper feature makes it easy to integrate it with your theme’s layouts when it’s not. Staffer also includes a template-override feature, which works similar to WooCommerce’s template override. In a nutshell, you can drop a custom template (named either archive-staff.php or single-staff.php) into your theme’s directory. If this file is present, Staffer will use it instead of the plugin’s own templates. This means you can further customize…

Displaying Related Posts without a Plugin in WordPress

Tutorial Navigation Part I – Pre-Query Checks Part II – Building the Query Part III – The Loop Part IV – Putting it all Together Part V – Adding CSS As I’m writing this, a plugin search on WordPress.org for “related posts” yields 1,328 results. It’s not quite a googol (OK, not even close), but it’s clear there’s no shortage of such plugins available in the repository. Despite this, I haven’t ran across one I’m fully satisfied with (I’m working…

Using jQuery’s Slide Toggle for Show/Hide Functionality

Tutorial Navigation Part I – Building the HTML Part II – jQuery Magic Part III – Putting it all Together Part IV – Advanced Usage and Troubleshooting The jQuery .slideToggle() method provides an alternative show-hide behavior that combines the library’s .slideUp() and .slideDown() methods into one neat little package. It animates an element’s height and sets display: none; once the element reaches 0px. If the element is hidden on load, running .slideToggle() displays the element, and if it’s displayed on…

How to Connect Gravity Forms to Salesforce Without a Plugin

Tutorial Navigation Part I – Introduction to Salesforce Lead Fields Part II – Setting Up the Gravity Forms Fields Part III – Integrating Gravity Forms and Salesforce Part IV – Wrapping it Up as a Plugin Part V – Debugging and Troubleshooting There is a Gravity Forms add-on plugin that connects Gravity Forms and the Salesforce CRM, but the connection can be made without using a plugin. Advanced users should proceed to Part III – Integrating Gravity Forms and Salesforce….

NewsFrame Pro Advanced Slider Control

Note:  this tutorial applies only to the NewsFrame Pro Business Version. Please contact me if you’ve purchased the base version but need to upgrade to the Business Version – I will be happy to issue you a credit so you only have to pay the difference. The NewsFrame Pro theme options panel includes two options for the home page slider: stacked and columnized. If you wish to to change other settings for the slider, such as the transition animation or…

How to use a child theme with NewsFrame Pro (Business Version)

In WordPress, child themes can be used to add functionality — new or overriding — to existing WordPress themes. The main benefit of using a child theme compared to modifying the theme directly, is that you’ll be able to take advantage of important theme updates without having your changes overwritten. Because the base version of NewsFrame Pro is a child theme, you cannot use a child theme with it (so-called “grandchild” themes don’t work in WordPress). However, the Business Version of…

Redirect all Gravity Forms submissions to a custom confirmation page

The Gravity Forms settings panel lets you set a custom confirmation message or redirection URL for each form. Unfortunately, if your site has a bunch of forms, it can be quite tedious to change the confirmation for each one. The gform_confirmation filter gives us a bulk method to override the confirmation for each form automatically, with just a few lines of code. Drop this code into your theme’s functions.php file to automatically configure a redirect URL for each form. Be…

Solution for ‘Page not found’ title on page located outside of WordPress

In some situations, one may need to use a page outside of WordPress for special features. In my specific situation, a client wanted to migrate a static site to WordPress while retaining the functions of a custom-coded calculator. I had trouble integrating the calculator into a custom page template, so I left the page outside of WordPress and called the blog header and theme to integrate with and match the theme’s styles: The problem: The page outside of WordPress worked…

Noindex posts within specific categories in WordPress

I ran into a situation that required bulk de-indexing (applying the noindex tag) of hundreds of posts within a specific category. One may run into a similar issue with syndicated content that does not need to be indexed in Google, or with content that’s primarily for users in my case, but is served from a landing page. I looked for a plugin to handle the problem but couldn’t find one, so I came up with my own little solution. It…

Using Schema.org shortcodes for WordPress

A lot of people seem confused and overwhelmed by microdata — and that’s understandable. There are a lot of conflicting standards and issues to work out. But the bottom line is Google/Microsoft, etc. seem to have settled on the scheme.org standard, and despite a few kinks, it looks like the way to go moving forward. I think using microdata in the future will be important. If properly implemented over a majority of the Web, it could do wonders to search engines…