Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/MediaRon/post-type-archive-mapping
- Owner: MediaRon
- License: gpl-2.0
- Fork: true (bigwing/post-type-archive-mapping)
- Created: 2018-09-24T17:23:10.000Z (about 6 years ago)
- Default Branch: dev
- Last Pushed: 2024-07-19T05:19:10.000Z (4 months ago)
- Last Synced: 2024-07-19T13:23:26.532Z (4 months ago)
- Language: PHP
- Size: 17 MB
- Stars: 19
- Watchers: 3
- Forks: 13
- Open Issues: 43
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
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.