Browsed by
Category: WordPress

WordPress: Requirement for Deployment to Production

WordPress: Requirement for Deployment to Production

WordPress Plugins Duplicator – Create a backup of your WordPress files and database. Duplicate and move an entire site from one location to another in a few steps. Create a full snapshot of your site at any point in time. Better Search and Replace – A small plugin for running a search/replace on your WordPress database. Linux Commands Recommended requirement for WordPress is PHP 5.6, MySQL 5.5 and make sure to enable Apache mod_rewrite module. Apache: Required Modules mod_authz_host log_config_module…

Read More Read More

How to Include PHP ActiveRecord in WordPress as Global Feature

How to Include PHP ActiveRecord in WordPress as Global Feature

This post for developers who used to ORM/ActiveRecord and not familiar with WordPress Query (like me) and want the ORM/ActiveRecord to be available in WordPress. As per post’s title, this post regarding how you can include PHP ActiveRecord for global use – let say you have multiple plugins that use PHP ActiveRecord, you can’t load same PHP ActiveRecord classes / redeclared classed in an application or system – to be precise in PHP. So the solution is to add in…

Read More Read More

WordPress: Custom RSS Feed

WordPress: Custom RSS Feed

There’s three main steps to create your custom RSS Feed. Register your feed in functions.php Create your template file feed-custom.php in your theme folder. You can copy and paste from wp-includes/feed-rss2.php to make things easier and make changes something like the following – I fetch post with post_type is ajde_events and is it a featured event: Basically you are done and you can go to your WordPress site http://yourblog.com?feed=custom. You may need add the following in order to flush your…

Read More Read More

WordPress: Install from Composer

WordPress: Install from Composer

Create a composer.json in project root directory and copy paste the following composer configuration. Then run composer install. Once done, copy wp/index.php to project root directory and update require( dirname( __FILE__ ) . ‘/wp-blog-header.php’ ); to require( dirname( __FILE__ ) . ‘/wp/wp-blog-header.php’ );. Now run the WP at http://localhost/wp-project-root and continue with installation and you’re done. References: Using Composer With WordPress Composer in WordPress Giving WordPress It’s Own Directory