https://github.com/developedbyme/dbm-content
Functionality to create type and relations between data in WordPress
https://github.com/developedbyme/dbm-content
wordpress wp
Last synced: about 2 months ago
JSON representation
Functionality to create type and relations between data in WordPress
- Host: GitHub
- URL: https://github.com/developedbyme/dbm-content
- Owner: developedbyme
- License: mit
- Created: 2018-01-08T20:39:06.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2025-06-18T14:36:27.000Z (about 1 year ago)
- Last Synced: 2025-07-03T22:37:40.084Z (about 1 year ago)
- Topics: wordpress, wp
- Language: JavaScript
- Homepage: http://developedbyme.com
- Size: 587 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
# DBM Content data
This plugin enables more content types and linking
## Usage
Add types and relations to pages, posts and attachments.
## Installation
### From your WordPress dashboard
1. Visit 'Plugins > Add New'
2. Search for 'DBM Content'
3. Activate DBM Content from your Plugins page.
### From WordPress.org
1. Upload the folder `dbm-content` to the `/wp-content/plugins/` directory.
2. Activate the plugin through the 'Plugins' menu in WordPress.
## Functions
### dbm_create_data($name, $type_path, $grouping_path)
Creates a new data post
### dbm_get_owned_relation($owner_id, $group)
Gets the relation that is owned by an object
### dbm_get_single_post_relation($post_id, $relation_path)
Gets a posts first relation in a group
### dbm_new_query($query_args_or_post_type = null)
Creates a new dbm content query
## Range options
### Selections
#### byOwnedRelation
Gets items that has the same relation as the owner.
Parameters
* ownedRelation - Comma separated string of group:id
/wprr/v1/range/page/byOwnedRelation/default?ownedRelation=example-group:1234
## Changelog
### 0.1
* First release.