Building WordPress websites with a taste of OO? Infinum’s WP-boilerplate v.2.0

The Infinum’s WordPress boilerplate is an easy way to kick-start your WordPress development using modern programming practices.

WP-boilerplate exploits all the advantages of best PHP practices, which is why we used namespacing to ensure avoiding any possible class, method and function clashes in the global namespace.

It also implemented the autoloader which means you no longer need to manually require your classes. Just instantiate them and the autoloader will take care of the rest. With the added performance boost.

WP-boilerplate also used Webpack to bundle all the assets (images, JavaScript, fonts and Sass files). This will introduce you to the concepts of modern JavaScript development. Besides all the advantages that Webpack offers (Browsersync plugin that makes cross-device development super easy), it enables you to use all the interesting ES6 features (arrow functions, classes, exports etc.).

There are other added bonuses that you can explore by reading the readme of the project.

Learn how to use Infinum’s WP-Boilerplate for your new projects.

Learn how to integrate Infinum’s WP-Boilerplate into your existing projects.

How to remove specific Posts and Pages from WordPress Search

Search mechanism and search results are very important part of every WordPress web site.

Usually, WordPress web sites have lots of “helper” pages that provide important functionalities, but they shouldn’t be included in search itself.

There are various of plugins that helps us accomplish this, but it’s not always a good solution to use new plugin for every small task, because our Web site can end up with tons of plugins, lots of updates etc.

Instead of installing a plugin, there is a small code snippet, that can help us exclude specific pages from WordPress search mechanism.

Read More

6.7 Reasons why you want to learn WordPress Database Model

Large number of free and premium WordPress plugins simply change values in already existing WP database. Learn about WP #database now.

Did you know that everything inside WordPress is actually a post? So, if you create Post, Page, Attachment, Revision, Custom CSS, Changesets… everythig is stored inside “wp_posts” database, only with different post_type value.

Also, all your users are stored inside “wp_users” database, and all addtional data about these users (profile fields for example), are stored inside “wp_usermeta” table.

Read More