Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dtbaker/wp-share-slug
Quick demo showing how a WordPress Custom Post Type can share the same base slug as a default post
https://github.com/dtbaker/wp-share-slug
Last synced: about 1 month ago
JSON representation
Quick demo showing how a WordPress Custom Post Type can share the same base slug as a default post
- Host: GitHub
- URL: https://github.com/dtbaker/wp-share-slug
- Owner: dtbaker
- Created: 2024-03-20T03:47:35.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-03-20T05:25:45.000Z (9 months ago)
- Last Synced: 2024-10-14T03:25:43.886Z (2 months ago)
- Language: PHP
- Size: 1.95 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# WP Share Post Slug Plugin
- Just testing some things out.
## Getting started:
```
docker-compose up
```1. Visit http://localhost:8080/wp-admin/ and login with `admin / admin`
2. Then activate the sample plugins.
3. Set a custom post structure to `/articles/%postname%/` in http://localhost:8080/wp-admin/options-permalink.php
4. Create a couple of sample blog posts
5. Ensure they are visible on the front end at the expected urls
6. e.g. http://localhost:8080/articles/test-new-post-1/
7. Create a couple of "Articles" (the new admin area created by the sample plugin)
8. Notice they are visible at the same `/articles/xxxxx/` URL structure, the same as normal blog posts.