Skip to content

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

Notifications You must be signed in to change notification settings

klandestino/featured-content-manager

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
Dec 19, 2024
Dec 19, 2024
Dec 16, 2024
Aug 22, 2019
Aug 13, 2019
Aug 12, 2019
Mar 5, 2021
Jan 16, 2025
Dec 16, 2024
Dec 13, 2024

Repository files navigation

Featured Content Manager

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