Install
This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/developedbyme/dbm-content/archive/refs/heads/master.zipNo built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.
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
- Visit 'Plugins > Add New'
- Search for 'DBM Content'
- Activate DBM Content from your Plugins page.
From WordPress.org
- Upload the folder
dbm-contentto the/wp-content/plugins/directory. - 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.