PHPackages                             getolympus/olympus-dionysos-field-wordpress - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Framework](/categories/framework)
4. /
5. getolympus/olympus-dionysos-field-wordpress

ActiveOlympus-field[Framework](/categories/framework)

getolympus/olympus-dionysos-field-wordpress
===========================================

WordPress field, this component is a part of the Olympus Dionysos fields.

v0.0.21(6y ago)02582MITPHP

Since Apr 29Pushed 6y ago1 watchersCompare

[ Source](https://github.com/GetOlympus/olympus-dionysos-field-wordpress)[ Packagist](https://packagist.org/packages/getolympus/olympus-dionysos-field-wordpress)[ Docs](https://github.com/GetOlympus/olympus-dionysos-field-wordpress)[ RSS](/packages/getolympus-olympus-dionysos-field-wordpress/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependencies (1)Versions (23)Used By (2)

[![](https://github.com/GetOlympus/olympus-dionysos-field-wordpress/raw/master/assets/field-wordpress.png)](https://github.com/GetOlympus/olympus-dionysos-field-wordpress/blob/master/assets/field-wordpress.png)

Dionysos Wordpress Field
========================

[](#dionysos-wordpress-field)

[![Olympus Component](https://camo.githubusercontent.com/f483886a465a9e44005a352c6c1ba6556689a579ecf0d8b984cf60becaaa878c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f666f722d4f6c796d7075732d3434636331312e7376673f7374796c653d666c61742d737175617265)](https://github.com/GetOlympus)[![CodeFactor Grade](https://camo.githubusercontent.com/f3d07c255287d37a26d45ab8925dbe296ae14c6b93464a922b6e9f168bd3c15a/68747470733a2f2f7777772e636f6465666163746f722e696f2f7265706f7369746f72792f6769746875622f4765744f6c796d7075732f6f6c796d7075732d64696f6e79736f732d6669656c642d776f726470726573732f62616467653f7374796c653d666c61742d737175617265)](https://www.codefactor.io/repository/github/getolympus/olympus-dionysos-field-wordpress)[![Packagist Version](https://camo.githubusercontent.com/fc17037bfc7f0684dd5283c17445e3af4086daa12772ca5b0c6e65d333eab0e4/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6765746f6c796d7075732f6f6c796d7075732d64696f6e79736f732d6669656c642d776f726470726573732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/getolympus/olympus-dionysos-field-wordpress)[![MIT](https://camo.githubusercontent.com/68035de4b7f69ada20e98e34172f47d361b83a017c8045200fc338660c467897/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49545f4c6963656e73652d626c75652e7376673f7374796c653d666c61742d737175617265)](https://github.com/GetOlympus/olympus-dionysos-field-wordpress/blob/master/LICENSE)

> This component is a part of the **Olympus Dionysos fields** for **WordPress**. It uses a duplicate `findPosts` WordPress custom modal to manage field.

```
composer require getolympus/olympus-dionysos-field-wordpress
```

---

Table of contents
-----------------

[](#table-of-contents)

[Field initialization](#field-initialization) • [Variables definitions](#variables-definitions) • [Texts definition](#texts-definition) • [Accepted types](#accepted-types) • [Retrive data](#retrive-data) • [Release history](#release-history) • [Contributing](#contributing)

---

Field initialization
--------------------

[](#field-initialization)

Use the following lines to add a `wordpress field` in your **WordPress** admin pages or custom post type meta fields:

```
return \GetOlympus\Dionysos\Field\Wordpress::build('my_wordpress_field_id', [
    'title'       => 'Which is your favourite post?',
    'default'     => [],
    'description' => 'Tell us which one did like this week.',
    'field'       => 'ID',
    'multiple'    => false,
    'type'        => 'post',
    'settings'    => [],

    /**
     * Texts definition
     * @see the `Texts definition` section below
     */
    't_addblock_title' => 'Click on the edit button',
    't_addblock_description' => 'Click on the "+" button to add your item.',
    't_addblocks_description' => 'Click on the "+" button to add a new item.',
    't_addblock_label' => 'Add',
    't_editblock_label' => 'Edit',
    't_removeblock_label' => 'Remove',

    't_modaltitle_label' => 'Choose a content',
    't_modalclose_label' => 'Close',
    't_modalsearch_label' => 'Search',
    't_modalsubmit_label' => 'Select',

    't_ajaxerror_label' => 'No item found',
]);
```

Variables definitions
---------------------

[](#variables-definitions)

VariableTypeDefault value if not setAccepted values`title`String`'Code'`*empty*`default`Array*empty**empty*`description`String*empty**empty*`field`String`ID`depends on `type` value`multiple`Boolean`false``true` or `false``type`String`post`see [Accepted types](#accepted-types)`settings`Array*empty*depends on `type` valueNotes:

- Set `multiple` to `true` to display checkboxes instead of radio buttons
- `field` variable is used to let you retrieve the data you need, depending on `type` value (for example: in the `'type' => 'term'` case, you'll get `term_id` by default)

Texts definition
----------------

[](#texts-definition)

CodeDefault valueDefinition`t_addblock_title`Click on the edit buttonUsed as a notice to help users when there is no label yet`t_addblock_description`Click on the "+" button to add your item.Used as a notice to help users in single format`t_addblocks_description`Click on the "+" button to add a new item.Used as a notice to help users in multiple format`t_addblock_label`AddAdd button label`t_editblock_label`EditEdit button label`t_removeblock_label`RemoveRemove button label`t_modaltitle_label`Choose a contentModal title`t_modalclose_label`CloseModal close button label`t_modalsearch_label`SearchModal search button label`t_modalsubmit_label`SelectModal select button label`t_ajaxerror_label`No item foundError message on ajax failureAccepted types
--------------

[](#accepted-types)

- `categories` or `category` (see `get_categories` on [WordPress reference](https://developer.wordpress.org/reference/functions/get_categories/) for `field` and `settings` variables)
- `menus` or `menu` (see `wp_get_nav_menus` on [WordPress reference](https://developer.wordpress.org/reference/functions/wp_get_nav_menus/) for `field` and `settings` variables)
- `pages` or `page` (see `get_pages` on [WordPress reference](https://developer.wordpress.org/reference/functions/get_pages/) for `field` and `settings` variables)
- `posts` or `post` (see `wp_get_recent_posts` on [WordPress reference](https://developer.wordpress.org/reference/functions/wp_get_recent_posts/) for `field` and `settings` variables)
- `posttypes` or `posttype` (see `get_post_types` on [WordPress reference](https://developer.wordpress.org/reference/functions/get_post_types/) for `field` and `settings` variables)
- `tags` or `tag` (see `get_the_tags` on [WordPress reference](https://developer.wordpress.org/reference/functions/get_the_tags/) for `field` and `settings` variables)
- `taxonomies` or `taxonomy` (see `get_taxonomies` on [WordPress reference](https://developer.wordpress.org/reference/functions/get_taxonomies/) for `field` and `settings` variables)
- `terms` or `term` (see `get_terms` on [WordPress reference](https://developer.wordpress.org/reference/functions/get_terms/) for `field` and `settings` variables)
- `users` or `user` (see `get_users` on [WordPress reference](https://developer.wordpress.org/reference/functions/get_users/) for `field` and `settings` variables)

Retrive data
------------

[](#retrive-data)

Retrieve your value from Database with a simple `get_option('my_wordpress_field_id', [])` (see [WordPress reference](https://developer.wordpress.org/reference/functions/get_option/)):

```
// Get wordpress from Database
$wordpress = get_option('my_wordpress_field_id', []);

if (!empty($wordpress)) {
    echo '';

    foreach ($wordpress as $post_id) {
        echo ''.get_the_title($post_id).'';
    }

    echo '';
}
```

Release history
---------------

[](#release-history)

VersionNote0.0.21Add checks on ajax call0.0.20Add wp-util WordPress integration0.0.19Fix display and WordPress core functions integrationContributing
------------

[](#contributing)

1. Fork it ()
2. Create your feature branch (`git checkout -b feature/fooBar`)
3. Commit your changes (`git commit -am 'Add some fooBar'`)
4. Push to the branch (`git push origin feature/fooBar`)
5. Create a new Pull Request

---

**Built with ♥ by [Achraf Chouk](https://github.com/crewstyle "Achraf Chouk") ~ (c) since a long time.**

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~71 days

Recently: every ~6 days

Total

21

Last Release

2231d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/c255b14ebf8b792ba8b0c9940bd13e899281fc1431f1088af9074acdaa191cef?d=identicon)[crewstyle](/maintainers/crewstyle)

---

Top Contributors

[![crewstyle](https://avatars.githubusercontent.com/u/1572149?v=4)](https://github.com/crewstyle "crewstyle (29 commits)")

---

Tags

customfieldframeworkolympus-zeusphptwigwordpressphpframeworkwordpressfieldcustomolympusdionysos

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/getolympus-olympus-dionysos-field-wordpress/health.svg)

```
[![Health](https://phpackages.com/badges/getolympus-olympus-dionysos-field-wordpress/health.svg)](https://phpackages.com/packages/getolympus-olympus-dionysos-field-wordpress)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
