To install this package using Composer, follow these steps:
-
Add the following to the
repositoriessection of yourcomposer.json:{ "type": "vcs", "url": "git@github.com:yardinternet/wp-live-content.git" } -
Install this package with Composer:
composer require yard/wp-live-content
-
Run the Acorn WP-CLI command to discover this package:
wp acorn package:discover
You can publish the config file with:
wp acorn vendor:publish --provider="Yard\LiveContent\LiveContentServiceProvider"From a Blade template:
<x-yard-live-content post-id="{{ $postId }}" />