dominicwatts/wordpresswidget

Lightweight widget which you can use to load wordpress blog posts on your magento site with minimal setup by providing link to json feed and a few other parameters

Installs: 1

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 0

Open Issues: 0

Language:HTML

Type:magento2-module

1.0.1 2019-11-16 23:10 UTC

This package is auto-updated.

Last update: 2024-12-17 10:29:18 UTC


README

Lightweight widget which you can use to load wordpress blog posts on your magento site with minimal setup by providing link to json feed and a few other parameters

No further integration steps required. Ideal for sites which have minimal interaction with WordPress install.

Install instructions

composer require dominicwatts/wordpresswidget

php bin/magento setup:upgrade

Usage instructions

Content > Widgets > Add Widget

Choose Type: WorpPress Post List and choose your theme.

There are a number of additional options that need configuring.

Under Storefront Properties

Give your widget a name, assign to store and give a sort.

Under Layout Properties

Sidebar Additional / Sidebar Main Layouts include:

  • WordPress Images and Titles Template

WordPress Images and Titles Template

  • WordPress Titles Only Template

WordPress Titles Only Template

  • WordPress Featured Image Only Template

WordPress Featured Image Only Template

Main Content Area layouts include:

  • Wordpress Grid Template

Wordpress Grid Template

  • Wordpress List Template

Wordpress List Template

Under Widget Options

Configure URL to JSON feed of Wordpress site

Typically the URL is structured like this

https://domain.com/wp-json/wp/v2/posts?per_page=10&_embed

The per_page parameter can limit post number. The _embed option is to pull through featured image.

You can also configure widget post limit and cache option here.