MediaRon / post-type-archive-mapping

Map your post type archives with a page/page template
GNU General Public License v2.0
19 stars 13 forks source link

Post Type Archive Mapping

Build Status

Map a page to the archive of your post types.

Features

Note

Your post types need to have has_archive set to true.

Installation

Go to Settings->Reading. At the bottom you will see a place to map your post types.

DEVS

  1. Clone the repo to any location you choose.

  2. Run npm install inside the folder.

  3. Run npm run build inside the folder.

  4. Set up a symlink to your WordPress installation using the folder as the base.

  5. Run npm run watch to make changes and then npm run build when you're done.

  6. To edit the block, they are in /blocks/load.js and /blocks/edit.js.

  7. The REST API is created and passed in /blocks.init.php.

  8. The attributes and output are in /blocks/class-post-type-select-posts.php.

Credit

Chris Logan for coming up with the idea.

Security Policy

Reporting Security Bugs Please report security bugs found in the Custom Query Blocks plugin's source code through the Patchstack Vulnerability Disclosure Program. The Patchstack team will assist you with verification, CVE assignment, and notify the developers of this plugin.