Skip to content

Latest commit

 

History

History
44 lines (31 loc) · 1.7 KB

README.md

File metadata and controls

44 lines (31 loc) · 1.7 KB

Post Type Archive Mapping

Build Status

Map a page to the archive of your post types.

Features

  • Select a Private or Public page to use as your post type archive page.
  • View the archive and you will see the page content instead of the archive content.
  • Use page templates on your pages for flexibility.

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.