Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/MediaRon/post-type-archive-mapping

Map your post type archives with a page/page template
https://github.com/MediaRon/post-type-archive-mapping

Last synced: 3 months ago
JSON representation

Map your post type archives with a page/page template

Awesome Lists containing this project

README

        

Post Type Archive Mapping
===================

[![Build Status](https://travis-ci.org/ronalfy/post-type-archive-mapping.svg?branch=master)](https://travis-ci.org/ronalfy/post-type-archive-mapping)

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.

1. To edit the block, they are in ```/blocks/load.js``` and ```/blocks/edit.js```.
2. The REST API is created and passed in ```/blocks.init.php```.
3. 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](https://patchstack.com/database/report-preview/fe816fb9-144f-4dd1-998a-a465439d87e0?pin=IFOiN16e7SpHRdJF). The Patchstack team will assist you with verification, CVE assignment, and notify the developers of this plugin.