OCMLABS/MODULE-WORDPRESS · CONFIGURATION REFERENCE

Configuration Reference

  • Magento
  • Adobe Commerce
  • Hyvä

All configuration paths are under the ocmlabs_wordpress/ prefix in Magento’s core_config_data table.

Admin path: Stores > Configuration > OCMLabs > WordPress Integration

Connection Group

Config PathTypeDefaultDescription
connection/wordpress_urltext(none)Full URL to WordPress installation
connection/api_keyobscure (encrypted)(none)API key from OCMLabs Content Bridge for Magento plugin
connection/timeouttext10HTTP request timeout in seconds

Blog Settings Group

Config PathTypeDefaultDescription
blog/base_urltextblogURL path prefix for blog pages
blog/posts_per_pagetext10Posts per listing page
blog/default_imageimage(none)Default featured image when post has none
blog/enable_commentsselect0Show comment section links
blog/front_page_modeselectpostsBlog home content: posts, page (WordPress front page only) or page_posts (front page, then posts). Since 2.1.0

Page Layout Group

Since 2.1.0. Values are Magento page layouts: 2columns-left, 2columns-right or 1column.

Config PathTypeDefaultDescription
layout/list_layoutselect2columns-leftBlog home, category, tag, author and search pages
layout/post_layoutselect2columns-leftSingle post pages

SEO Group

Config PathTypeDefaultDescription
seo/use_wp_seoselect1Pull meta/OG from Yoast or RankMath
seo/blog_meta_titletextBlogTitle tag for blog listing page
seo/blog_meta_descriptiontextarea(none)Meta description for blog listing
seo/url_structureselectpost-nameURL format: post-name or category-post-name
Config PathTypeDefaultDescription
menus/enabledselect0Enable WordPress menus
menus/sidebar_menuselect(none)Slug of the WordPress menu shown at the top of the blog sidebar. Since 2.1.0

Cache Group

Config PathTypeDefaultDescription
cache/lifetimetext1800Post cache lifetime in seconds
cache/category_lifetimetext86400Category/tag cache lifetime in seconds
cache/enable_webhookselect1Accept webhook cache purge requests
cache/webhook_secretobscure (encrypted)(none)Webhook signing secret; falls back to the API key when empty

Content Group

Config PathTypeDefaultDescription
content/enable_relatedselect1Show related posts on post pages
content/related_counttext5Number of related posts to show
content/enable_sharingselect1Show social sharing links
content/enable_author_pagesselect1Enable author archive pages

Reading Config in Code

Always access configuration through Model/Config.php. Never call ScopeConfigInterface::getValue() directly in controllers, blocks, or templates.

PHP
// Correct
$url = $this->config->getWordPressUrl();

// Incorrect - do not do this
$url = $this->scopeConfig->getValue('ocmlabs_wordpress/connection/wordpress_url');

See also

Related pages

In this module