Skip to content

tiarly/WordPress-in-Magento

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

##1. Requires WordPress installed

Add this to top of /index.php

define("WP_USE_THEMES", false);
if(!strpos($_SERVER['REQUEST_URI'], 'admin') && !strpos($_SERVER['REQUEST_URI'], 'downloader')) {
    require_once('wordpress/wp-load.php'); 
}

##2. Prevent Autoloading WordPress files

Add to /lib/Varien/Autoload.php line 93:

if(!file_exists(stream_resolve_include_path($classFile))){
    return null;
}

##3. Duplicate "__()" function

Remove depreciated function from /app/code/core/Mage/Core/functions.php on line 96

// function __()
// {
//    return Mage::app()->getTranslator()->translate(func_get_args());
// }

About

Simple extension to integrate WordPress posts in a Magento site!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 98.5%
  • CSS 1.5%