10+
March 18, 2026
January 24, 2023
In 2.0 the new Jobbnorge API is used, and the following features are available ( ~~strikethrough~~ means removed, since it’s not in the new API):
New features in 2.0:
– Add more than one employer.
– If more than one employer is added, order jobs by employer or deadline.
– Define which employers are available in the block, using the jobbnorge_employers filter.
jobbnorge_employers
The jobbnorge_employers filter can be used to define which employers are available in the block:
add_filter( 'jobbnorge_employers', function( $employers ) {
$employers = [
[
'label' => 'Select employer',
'value' => '',
'disabled' => true, // Optional.
],
[
'label' => 'Employer 1',
'value' => '1234',
],
[
'label' => 'Employer 2',
'value' => '5678',
],
];
return $employers;
} );
jobbnorge_cache_path
The jobbnorge_cache_path filter can be used to define the cache path. Default is WP_CONTENT_DIR . '/cache/jobbnorge'.
jobbnorge_cache_time
The jobbnorge_cache_time filter can be used to define the cache time. Default is 30 * MINUTE_IN_SECONDS.
jobbnorge_autoscroll_threshold
The jobbnorge_autoscroll_threshold filter adjusts when automatic scroll engages after pagination. The value is a float representing the fraction of the viewport height the block’s top must be within to skip scrolling (default 0.25). Example:
add_filter( 'jobbnorge_autoscroll_threshold', function( $threshold ) {
return 0.15; // Scroll only if block starts below top 15% of viewport.
} );
When pagination is enabled a setting Disable auto scroll on pagination becomes available. Enabling it adds a disableAutoScroll attribute (and data-no-autoscroll in markup) preventing the page from scrolling after changing pages.
The plugin is also available on GitHub
Either, add the block from the Block Directory:
Or, add the block from the WordPress admin:
You get it from your Jobbnorge contact.
edit icon with pencil from @wordpress/icons.parse_date_fallback() to handle malformed date strings.jobbnorge_block_render_error action hook for debugging render failures.$attributes is always an array in render_block_dss_jobbnorge.data-attributes JSON from wrapper <div> to <ul> so pagination JS reliably reads them.role="status" live region announcing current results & page (per instance) and force re-announcement after pagination.instanceId with data-block-instance for precise multi-instance pagination & scroll targeting.disableAutoScroll).jobbnorge_autoscroll_threshold filter to customize auto scroll visibility threshold (default 0.25 viewport height).jobbnorge_api_request_failed).| Version | Download | Type |
|---|---|---|
| 2.3.0 | Download | Stable |
| 2.2.7 | Download | Stable |
| 2.2.6 | Download | Stable |
| 2.2.5 | Download | Stable |
| 2.2.4 | Download | Stable |
| 2.2.3 | Download | Stable |
| 2.2.2 | Download | Stable |
| 2.2.1 | Download | Stable |
| 2.2.0 | Download | Stable |
| 2.1.5 | Download | Stable |
| 2.1.4 | Download | Stable |
| 2.1.3 | Download | Stable |
| 2.1.2 | Download | Stable |
| 2.1.1 | Download | Stable |
| 2.1.0 | Download | Stable |
| 2.0.0 | Download | Stable |
| 1.0.13 | Download | Stable |
| 1.0.12 | Download | Stable |
| 1.0.11 | Download | Stable |
| 1.0.10 | Download | Stable |
| 1.0.9 | Download | Stable |
| Development | Download | Trunk |