How to Conditionally Enqueue a JavaScript File in WordPress - WPShout
Enqueuing is the WordPress way to add a stylesheet or JavaScript file on a page. We already published a Quick Guide about including your JavaScript in WordPress. This time, though, we’re adding an extra wrinkle: how do you only enqueue a JavaScript file on certain pages of your WordPress site. That’s the focus of this here Quick Guide.
Add Taxonomy Terms as CSS Classes to a Post | WP Beaches
You can use the body_class filter in WordPress to add the Taxonomy Terms of a Custom Taxonomy as CSS classes to a post. The CSS class appears in the body element and is only used if the post has been assigned to the taxonomy. The code goes in your functions.php file. add_filter( 'body_class', 'themeprefix_add_taxonomy_class'…
WordPress Local Development For Beginners: From Setup To Deployment
Is there a better way to make direct changes to your WordPress website? Yes, there is! Learn how to build a local WordPress environment with XAMPP and how to get your website online once it’s ready to see the light of day.
Getting started with continuous integration and WordPress | The Man in the Arena
I gave an introduction to continuous integration with WordPress at WordCamp San Diego 2018. This is the companion article that I wrote for it. If you’re just looking for the slides, click here.
I can't stop praising WordPress when it comes to the conveniences it provides. While the approach it takes on things might not suit everyone, every time, for the most part its solutions to common issues
How to Migrate from Wix to WordPress (Complete Guide)
Migrating from Wix to WordPress can be rather a complicated process, but it's definitely worth it. Check out this complete migration guide which can help make the transition a breeze!
How to Pass Transaction Fees to the Customer with Gravity Forms
We'll show you how to pass the transaction fees to the customer and how to make this optional. This tutorial assumes that you know how to add fields in Gravity Forms and know how to set up Paypal/Stripe on there as well.
How to Create an Instant Online Quote Calculator in WordPress with Gravity Forms | Barn2 Media
Lots of people have asked us how to create an instant online quote calculator for their WordPress website. Here's how we created our own, so you can too.
Show All Post Meta Keys and Values for a Post in WordPress | WP Beaches
If you wanted to see all the post meta keys and values for a post,page or custom post type in WordPress you can either see them in the database in the wp_postmeta table or you could use the get_post_meta function to retrieve all the post meta or a specific key. To output the data to…
FooGallery Developer 101 - FooPlugins Knowledge Base
FooGallery was designed to be the most Developer-friendly gallery there is. As a freelancer, developer, or web development agency you have a lot of clients
This code adds a custom body class when the permalink contains the slug test-slug. If it doesn’t, no custom body class is added. Could also be written like this : [code] add_filter( ‘bo…
After my post on Renaming the default “Posts” post type in WordPress to something else, I’ve gotten some follow up questions on renaming taxonomies as well. Here is a quick tutorial on how you can rename the default WordPress taxonomies (tags/categories). Solution Similar to renaming the post type, we need to tackle two areas: the …
Galleries and images are not new to WordPress. Gallery plugins existed long before WordPress had enhanced media functionality of it’s own. The [ gallery ] shortcode was introduced in version 2.5 and the Gallery Post Format came around in 3.1. This post will walk you through the process of working with and styling the native […]
Taking Over a WordPress Website: The Ultimate Checklist
As simple as WordPress is to get up and running, taking over a WordPress website from someone else is anything but. It’s not hard to take control of a WP install, but there are a lot of moving...
Image Carousel Thumbnail Slider with ACF Gallery Field in WordPress | WP Beaches
Here is a guide on how to make an image carousel thumbnail slider with ACF in WordPress using the ACF gallery field. Lightslider, a lightweight image slider seems to fit the bill perfectly – I need it to just display simple thumbnails below the main image which on click/touch show the image in the main slide…
How to Edit an Image in WordPress: Crop, Scale, Rotate, Flip, Resize
Learn how to edit an image in WordPress. Scale, rotate, flip, resize & crop images in the WordPress Media Library. This step-by-step guide demonstrates how to easily edit WordPress images with no photo editing software, Photoshop, etc. Restore your original image with one click, or replace an image and keep the file name.
How To Make A Dynamic Website Become Static Through A Content CDN
What if we could have a WordPress website in which its dynamic content could be exported as static files? Leonardo Losoviz explains how you can combine both worlds: switch to a static site generator without having to abandon WordPress.
Powering the WordPress Search with React and REST API - Igor Benić
The WordPress Search Widget is a classic HTML Form, but what if we want to show the results right away? In this tutorial, we will power up the WordPress Search Form with React and REST API to show the results […]
Be Watchful: PHP And WordPress Functions That Can Make Your Site Insecure
Before deploying a new plugin in WordPress, it's a good idea to keep a list of easy-to-misuse functions by your side. Let's take a closer look at some functions which you can and should use as part of a broader security strategy.
Designing a system: WordPress REST API endpoints | The Man in the Arena
Let’s talk about the WordPress REST API. It’s been around for a little while now, and you might have even started using it in your projects. After all, a lot of us are trying to get more into…
In this short tutorial, we look at the WordPress body class and how we can manipulate it using core API calls.Specifically, we cover adding body classes, removing body classes, conditionally adding...
Add a body class based on the value of a custom field / post meta
This morning I needed to add a body class to a page only if a meta value stored in the posts meta data was a certain value. Here are a couple examples of that in action.