Answer the question
In order to leave comments, you need to log in
How to connect WP functions in Laravel?
Can you please tell me if it is possible to include WP functions in a Laravel project? The project structure is as follows:
The WP installation is located at the root, the Laravel project is located in a separate folder at the root. I would like to include functions in the Laravel template:
<?php require( '../wp-load.php' ); ?>
<?php get_header(); ?>
<?php get_sidebar(); ?>
<?php get_footer(); ?>
Is it possible? And if so, how to implement?
Thank you!
Answer the question
In order to leave comments, you need to log in
Here is something about crossing a hedgehog and a snake grossi.io/2014/working-with-laravel-4-and-wordpres... and here plugins 2 https://wordpress.org/plugins/tags/laravel but the question is why ?? what is in laravel, what is missing in wordpress? and vice versa?
Try adding Blade constructs where you pass WP functions and call in the template...
There is a framework for WP - Themosis, it looks like it is made on laravel, maybe it is - framework.themosis.com
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question