PHPackages                             jcodigital/jcore-maailma - 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. jcodigital/jcore-maailma

ActiveWordpress-plugin

jcodigital/jcore-maailma
========================

JCORE Global Content plugin

v1.4.1(2mo ago)0512↓50%GPL-2.0-onlyPHPCI passing

Since Dec 11Pushed 2mo agoCompare

[ Source](https://github.com/JCO-Digital/jcore-maailma)[ Packagist](https://packagist.org/packages/jcodigital/jcore-maailma)[ RSS](/packages/jcodigital-jcore-maailma/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (10)Versions (18)Used By (0)

JCORE Maailma
=============

[](#jcore-maailma)

A WordPress plugin that provides a global content post type and block for reusable content across your site.

Description
-----------

[](#description)

JCORE Maailma (Finnish for "world") enables you to create reusable content blocks that can be inserted anywhere on your WordPress site. Perfect for content that needs to appear in multiple locations like disclaimers, contact information, promotional banners, or any other content you want to manage from a single location.

Features
--------

[](#features)

- **Global Content Post Type**: Create and manage reusable content pieces
- **Gutenberg Block**: Easy-to-use block for inserting global content
- **Polylang Integration**: Built-in support for multilingual content
- **Timber/Twig Integration**: Custom Twig function for use in templates
- **PHP Helper Functions**: Programmatically access global content
- **Automatic Slug Generation**: Post slugs are automatically generated from titles

Requirements
------------

[](#requirements)

- WordPress 6.7 or higher
- PHP 8.2 or higher

Installation
------------

[](#installation)

1. Upload the plugin files to `/wp-content/plugins/jcore-maailma/`
2. Activate the plugin through the 'Plugins' menu in WordPress
3. Start creating global content under the "Global Content" menu in WordPress admin

Usage
-----

[](#usage)

### Creating Global Content

[](#creating-global-content)

1. Navigate to **Global Content** in the WordPress admin menu
2. Click **Add New Global Content**
3. Enter a title (this will be used as the slug for referencing)
4. Add your content using the block editor
5. Publish the content

### Using the Gutenberg Block

[](#using-the-gutenberg-block)

1. In the block editor, add a new block
2. Search for "JCORE Global Content"
3. Select the global content post from the dropdown in the block settings
4. The content will be displayed in the editor and on the frontend

### Using PHP Functions

[](#using-php-functions)

#### Get Global Content by ID or Slug

[](#get-global-content-by-id-or-slug)

```
