Combination of WordPress and e107

Using WP for areas when e107 fails and e107 for adminstration custom things

It takes too long waiting for e107 to be perfect. Its power is in Admin UI, easy management data etc. So I decided and successfully tested to combine WordPress and e107. 

My favorite (and almost only used theme for WP is Impreza with Visual Bakery for building content), so I used this solution on my originally e107 site.

e107 is installed in a subdirectory (it works in the same level too, but I needed it this way to block access to this subdirectory. 

e107 site uses a custom plugin with a lot of data I need to manipulate with e107 way. Before it was a combination of the United Nuke and e107, but I need to remove Nuke soon because of PHP 8.

How does it work?  

- if prefix for e107 is f.e. e107_, then prefix for WP is e107_wp_ - so this way is e107 able to manipulate with WordPress tables. 

- include class2.php in wp_config.php with the correct path. In the beginning because of sessions. 

Then I created a WP shortcode in function.php and the content of it is fully managed with e107 handlers. I needed only one parameter to display the needed data. The reason is easy - I am more familiar with e107 programming than WP queries and posts and it is easier for me than write the same code in WP. 

I mapped this shortcode to Visual Bakery a and it is all.

Now I created posts/pages in WP, this solves URLs issues, SEO issues, easy content management issues, media management. And if I need to display data managed by e107, I just add a shortcode with the correct parameter.

And the power of Impreza grids, filters, content templates, and page blocks allows me to do exactly what I need - to be able to organize my collection the way I always wanted. And using e107 for managing data allows me to avoid WP administration. I still can't imagine managing this with WP and this is the perfect solution for me.  

Example:

https://www.kizi.sk/serie/gli-intrepidi-sir-condor/

The post itself is managed by WP, but everything below My collection is done by e107. 

  • Tags:
  • None



This news item is from e107 Bootstrap CMS
https://www.e107sk.com/news/view/item?news_id=107&news_title=Combination%20of%20WordPress%20and%20e107&news_sef=combination-of-wordpress-and-e107&news_body=%5Bhtml%5D%3Cp%3EIt%20takes%20too%20long%20waiting%20for%20e107%20to%20be%20perfect.%20Its%20power%20is%20in%20Admin%20UI%2C%20easy%20management%20data%20etc.%20So%20I%20decided%20and%20successfully%20tested%20to%20combine%20WordPress%20and%20e107.%26nbsp%3B%3Cspan%20data-preserver-spaces%3D%26quot%3Btrue%26quot%3B%3E%3C%2Fspan%3E%3C%2Fp%3E%0A%3Cp%3E%3Cspan%20data-preserver-spaces%3D%26quot%3Btrue%26quot%3B%3EMy%20favorite%20%28and%20almost%20only%20used%20theme%20for%20WP%20is%20Impreza%20with%20Visual%20Bakery%20for%20building%20content%29%2C%20so%20I%20used%20this%20solution%20on%20my%20originally%20e107%20site.%3C%2Fspan%3E%3C%2Fp%3E%0A%3Cp%3E%3Cspan%20data-preserver-spaces%3D%26quot%3Btrue%26quot%3B%3Ee107%20is%20installed%20in%20a%20subdirectory%20%28it%20works%20in%20the%20same%20level%20too%2C%20but%20I%20needed%20it%20this%20way%20to%20block%20access%20to%20this%20subdirectory.%26nbsp%3B%3C%2Fspan%3E%3C%2Fp%3E%0A%3Cp%3E%3Cspan%20data-preserver-spaces%3D%26quot%3Btrue%26quot%3B%3Ee107%20site%20uses%20a%20custom%20plugin%20with%20a%20lot%20of%20data%20I%20need%20to%20manipulate%20with%20e107%20way.%20Before%20it%20was%20a%20combination%20of%20the%20United%20Nuke%20and%20e107%2C%20but%20I%20need%20to%20remove%20Nuke%20soon%20because%20of%20PHP%208.%3C%2Fspan%3E%3C%2Fp%3E%0A%3Cp%3E%3Cstrong%3EHow%20does%20it%20work%3F%26nbsp%3B%26nbsp%3B%3C%2Fstrong%3E%3C%2Fp%3E%0A%3Cp%3E%3Cspan%20data-preserver-spaces%3D%26quot%3Btrue%26quot%3B%3E-%20if%20prefix%20for%20e107%20is%20f.e.%20e107_%2C%20then%20prefix%20for%20WP%20is%20e107_wp_%20-%20so%20this%20way%20is%20e107%20able%20to%20manipulate%20with%20WordPress%20tables.%26nbsp%3B%3C%2Fspan%3E%3C%2Fp%3E%0A%3Cp%3E%3Cspan%20data-preserver-spaces%3D%26quot%3Btrue%26quot%3B%3E-%20include%20class2.php%20in%20wp_config.php%20with%20the%20correct%20path.%20In%20the%20beginning%20because%20of%20sessions.%26nbsp%3B%3C%2Fspan%3E%3C%2Fp%3E%0A%3Cp%3E%3Cspan%20data-preserver-spaces%3D%26quot%3Btrue%26quot%3B%3EThen%20I%20created%20a%20WP%20shortcode%20in%20function.php%20and%20the%20content%20of%20it%20is%20fully%20managed%20with%20e107%20handlers.%20I%20needed%20only%20one%20parameter%20to%20display%20the%20needed%20data.%20The%20reason%20is%20easy%20-%20I%20am%20more%20familiar%20with%20e107%20programming%20than%20WP%20queries%20and%20posts%20and%20it%20is%20easier%20for%20me%20than%20write%20the%20same%20code%20in%20WP.%26nbsp%3B%3C%2Fspan%3E%3C%2Fp%3E%0A%3Cp%3E%3Cspan%20data-preserver-spaces%3D%26quot%3Btrue%26quot%3B%3EI%20mapped%20this%20shortcode%20to%20Visual%20Bakery%20a%20and%20it%20is%20all.%3C%2Fspan%3E%3C%2Fp%3E%0A%3Cp%3E%3Cspan%20data-preserver-spaces%3D%26quot%3Btrue%26quot%3B%3ENow%20I%20created%20posts%2Fpages%20in%20WP%2C%20this%20solves%20URLs%20issues%2C%20SEO%20issues%2C%20easy%20content%20management%20issues%2C%20media%20management.%20And%20if%20I%20need%20to%20display%20data%20managed%20by%20e107%2C%20I%20just%20add%20a%20shortcode%20with%20the%20correct%20parameter.%3C%2Fspan%3E%3C%2Fp%3E%0A%3Cp%3E%3Cspan%20data-preserver-spaces%3D%26quot%3Btrue%26quot%3B%3EAnd%20the%20power%20of%20Impreza%20grids%2C%20filters%2C%20content%20templates%2C%20and%20page%20blocks%20allows%20me%20to%20do%20exactly%20what%20I%20need%20-%20to%20be%20able%20to%20organize%20my%20collection%20the%20way%20I%20always%20wanted.%20And%20using%20e107%20for%20managing%20data%20allows%20me%20to%20avoid%20WP%20administration.%20I%20still%20can%26%23039%3Bt%20imagine%20managing%20this%20with%20WP%20and%20this%20is%20the%20perfect%20solution%20for%20me.%26nbsp%3B%26nbsp%3B%3C%2Fspan%3E%3C%2Fp%3E%0A%3Cp%3E%3Cspan%20data-preserver-spaces%3D%26quot%3Btrue%26quot%3B%3EExample%3A%3C%2Fspan%3E%3C%2Fp%3E%0A%3Cp%3E%3Ca%20target%3D%26quot%3B_blank%26quot%3B%20href%3D%26quot%3Bhttps%3A%2F%2Fwww.kizi.sk%2Fserie%2Fgli-intrepidi-sir-condor%2F%26quot%3B%20class%3D%26quot%3Beditor-rtfLink%26quot%3B%20rel%3D%26quot%3Bnoopener%26quot%3B%3E%3Cspan%20data-preserver-spaces%3D%26quot%3Btrue%26quot%3B%3Ehttps%3A%2F%2Fwww.kizi.sk%2Fserie%2Fgli-intrepidi-sir-condor%2F%3C%2Fspan%3E%3C%2Fa%3E%3C%2Fp%3E%0A%3Cp%3E%3Cspan%20data-preserver-spaces%3D%26quot%3Btrue%26quot%3B%3EThe%20post%20itself%20is%20managed%20by%20WP%2C%20but%20everything%20below%20My%20collection%20is%20done%20by%20e107.%26nbsp%3B%3C%2Fspan%3E%3C%2Fp%3E%0A%3Cp%3E%3C%2Fp%3E%5B%2Fhtml%5D&news_extended=&news_meta_title=&news_meta_keywords=&news_meta_description=&news_meta_robots=&news_datestamp=1632997007&news_modified=0&news_author=1&news_category=1&news_allow_comments=0&news_start=0&news_end=0&news_class=0&news_render_type=0&news_comment_total=0&news_summary=Using%20WP%20for%20areas%20when%20e107%20fails%20and%20e107%20for%20adminstration%20custom%20things&news_thumbnail=%7Be_MEDIA_IMAGE%7D2021-01%2FlogoHDwhite.png%2C%2C%2C%2C&news_sticky=0&news_template=default&user_id=1&user_name=Jimako&user_customtitle=&user_image=&category_id=1&category_name=Misc&category_sef=misc&category_icon=%7Be_IMAGE%7Dicons%2Fnews_16.png