…using the include_once() function) in your theme's functions.php file. Here's an example: <?php include_once( dirname( __FILE__ ) . '/path/to/kirki/kirki.php' ); ?> Piece of cake, isn't it? Below that, you can create a configuration to avoid conflicts with other themes or plugins that use Kirki as well: <?php Kirki::add_config( 'my_theme', array(…
…using a custom module. Today, I'll extend it and demonstrate how you can override core model files using an XML-based configuration file.Why Overriding Models?In Magento, models play an important role as they implement most of the business logic of the core features. There are times when you need to change…
…using Theme Check to test your plugin against theme review standards. Let's begin! Freedom of Coding in WordPress and Using It Responsibly You can do anything with WordPress themes. Anything. You can list the latest posts, you can display video galleries, you can get payments for your services, you can…
…using the latest WordPress coding standards and API's", according to the GenerateWP.com homepage. It's a really fun way to build WordPress code without any hassle. But it's more than that. By its nature, GenerateWP also teaches people how to code in WordPress. When you select a tool and build your…
…Using WP Quick Install to Rev Up Your Workflow Three years ago, the guys over at the WP Rocket plugin released WP Quick Install, a tool to automate the installation and customization processes of WordPress. Before moving on with the tutorial and discussing how to make use of the tool,…
…using as post type archive titles. Parameters This template tag accepts two parameters: $prefix (optional—string):Prefix to the title.(Default: Empty) $echo (optional—boolean):Whether echo (TRUE) or return (FALSE) the tag.(Default: TRUE) Usage <?php // Getting post type archive title. $archive_title = post_type_archive_title( '', false ); // Display post type archive title. post_type_archive_title(…
…using the starter codes inside the files, you can optimize your workflow and write the plugin the right way. Using the WordPress Plugin Boilerplate Granted, this tool is not for WordPress beginners. But you don't have to be a WordPress guru either: Even if you have a basic understanding of…
…using undefined can really be—that is, are we talking about the global object or a primitive value? That's beyond the scope of this post (no pun intended!), but even if you're not familiar with either definition, that doesn't mean you're not capable of diagnosing the problem.Set Up a SandboxFirst, let's…
…using one of the many plugins out there that identify related posts. These use various methods to identify other posts which have similar content to the current one, but sometimes they don't give you quite the results you want.One logical way to identify posts like the one currently on display…
…using a sql install file. So in the above template file, we display those two fields in the form of simple text fields.Now, Magento won't detect the above form block setup automatically. For that, we need to set up a model file, so let's do that by creating the model…