WP Manifestindependent plugin directory
manifest / unclassified / featured-content-manager

Featured Content Manager

A repo for the new version of the featured-content-manager.

★ 0stars

Install

Download source zip No release zip yet

This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/klandestino/featured-content-manager/archive/refs/heads/master.zip
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

This plugin lets you create sortable and nested lists (Featured Content Areas) of content you want to feature on your website. These sortable lists can contain content of object_type post and term.

Build

  1. Run $ npm install to install dependencies.
  2. Run $ npm build to build assets as javascript, styles and images.

Installation

To start using Featured Content Manager you nead to add support for it in your WordPress theme like the example below.

add_theme_support( 'featured-content-manager',
    array(
        'featured_areas' => [
            'posts'    => [
                'title'           => 'Featured Posts Area',
                'max'             => 10, // Default is 10.
                'levels'          => 2,  // Default is 1.
                'object_type'     => 'post',
                'object_subtypes' => [ 'post' ],
            ],
            'category' => [
                'title'           => 'Featured Categories Area',
                'max'             => 5,
                'object_type'     => 'term',
                'object_subtypes' => [ 'category', 'post_tag' ],
            ]
        ],
    )
);

Todo:

This is a short list of features that may be included in the future.

  • x Add level of nestable in theme_support.
  • x Add max number of items in list in theme_support
  • ☐ Add post_status as a setting in theme_support