inc2734/wp-contents-outline

A library for WordPress. This adds contents outline of the post.

Installs: 2 208

Dependents: 2

Suggesters: 0

Stars: 1

Watchers: 1

Forks: 0

Open Issues: 0

Language:Shell

3.2.0 2019-05-18 23:43 UTC

README

Build Status Latest Stable Version License

Install

$ composer require inc2734/wp-contents-outline

How to use

<?php
// When Using composer auto loader
new Inc2734\WP_Contents_Outline\Bootstrap();

// Set shortcode in post
// e.g. You want to contents outline from `$('.c-entry__content').children('h2, h3, h4, h5, h6')`
[wp_contents_outline post_id="(Optional)" selector=".c-entry__content" move_to_before_1st_heading="true"]