https://github.com/beapi/bea-silo
Dev oriented plugin to add silo feature (IN DEVELOPMENT)
https://github.com/beapi/bea-silo
silo wordpress wordpress-plugin
Last synced: 9 months ago
JSON representation
Dev oriented plugin to add silo feature (IN DEVELOPMENT)
- Host: GitHub
- URL: https://github.com/beapi/bea-silo
- Owner: BeAPI
- Created: 2018-03-02T16:01:30.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2024-06-03T13:58:14.000Z (over 1 year ago)
- Last Synced: 2025-03-22T12:47:24.352Z (9 months ago)
- Topics: silo, wordpress, wordpress-plugin
- Language: PHP
- Homepage: https://beapi.fr
- Size: 77.1 KB
- Stars: 0
- Watchers: 13
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# BEA - Silo (IN DEVELOPMENT)
Dev oriented plugin to add silo feature :
* It will use `wp_localize_script` to localize (javascript), depending on some conditions, terms from wanted taxonomies against wanted post type.
* You can overwrite default term's object to add/remove some values.
* By default a custom [REST Api](https://bitbucket.org/beapi/bea-silo#markdown-header-rest-api) route is created to ease matching post type and taxonomy silo content.
* These matching content will be displayed using a _s template located by default into `silo/templates/` folder. But they can be overwrited into theme or child-theme.
* The silo is displayed with an action from the `silo/blocks/` folder. But it can be overwrited into theme or child-theme.
* By default, plugin generate a default silo view into `silo-{taxonomy_name}.php` template.
# Installation
## WordPress
* Download and install using the built-in WordPress plugin installer.
* Site Activate in the "Plugins" area of the admin.
* Optionally drop the entire `bea-silo` directory into `plugins`.
* Add into your theme's functions.php file or through a plugin, the expected [Steps](https://bitbucket.org/beapi/bea-silo#markdown-header-steps).
## Composer
* Add repository source : { "type": "vcs", "url": "https://github.com/BeAPI/bea-silo" }.
* Include "bea/bea-silo": "dev-master" in your composer file for last master's commits or a tag released.
# Steps to use
## Special warning
If using the default taxonomy's silo view. Watch out about SEO with duplicate content.
## Register post type support
While waiting [ticket/40413](https://core.trac.wordpress.org/ticket/40413) merge into core, add post type support like this :
```
[ 'silo' => [ {taxonomy_1}, {taxonomy_2}, {etc} ] ] ] );
```
## Define localize conditions
### Custom localization
On the hook `bea\silo\localize_terms` you specify where to localize your terms taxonomy for a post type.
```
false`.
```
taxonomy );
```
### Example
```