Plugin Framework for WordPress Developers - Super simple, beautiful & powerful
MIT License
Plugin Framework for WordPress Developers - Super simple, beautiful & powerful
# header.php - display last 3 posts with the post facade
use Netro\Facade\Type\Post;
foreach (Post::latest(3) as $post) {
$post->getTitle();
$post->getContent();
$post->getCreatedAt()->diffForHumans();
$post->getImage()->getPath();
$post->getAuthor()->getLastName();
}
wp-content/plugins/netro
composer install
in the wp-content/plugins/netro
directoryIf you discover a bug in Netro, please open an issue on the issues section