{"id":1919,"date":"2025-11-26T11:48:19","date_gmt":"2025-11-26T12:48:19","guid":{"rendered":"http:\/\/gogetmuscle.com\/?p=1919"},"modified":"2025-11-26T17:40:01","modified_gmt":"2025-11-26T17:40:01","slug":"blog-post-is-not-rendering-disabledexception-module-is-disabled-in-this-context","status":"publish","type":"post","link":"http:\/\/gogetmuscle.com\/index.php\/2025\/11\/26\/blog-post-is-not-rendering-disabledexception-module-is-disabled-in-this-context\/","title":{"rendered":"Blog post is not rendering DisabledException: ‘module’ is disabled in this context"},"content":{"rendered":"

{% set SAFE_BLOG = 232829990938 %}
{% set SAFE_LIMIT = module.number_of_posts %}
{% set SAFE_TAG = module.blog_filer_options.tag_field.slug %}
{% set POST_TYPE = module.blog_filer_options.select_post_type %}<\/P>

{% set posts = [] %}<\/P>

{% if POST_TYPE == ‘blog_recent_posts’ %}
{% set posts = blog_recent_posts(SAFE_BLOG, SAFE_LIMIT) %}
{% elif POST_TYPE == “blog_popular_posts” %}
{% set posts = blog_popular_posts(SAFE_BLOG, SAFE_LIMIT, ”) %}
{% elif POST_TYPE == “filter_by_tags” %}
{% set posts = blog_recent_tag_posts(SAFE_BLOG, SAFE_TAG, SAFE_LIMIT) %}
{% endif %}



in my module whenever i use hardcoded blog id like
{% set SAFE_BLOG = 232829990938 %} this my code works perfect


but there is a dropdown field in my module where to select the blog.\u00a0
so I used this\u00a0
{% set SAFE_BLOG = module.blog_filer_options.select_blog %}

and getting this error (\u00a0DisabledException: ‘module’ is disabled in this context )
<\/SPAN><\/P>

\u00a0<\/P>

can anyone tell me.
{% set SAFE_BLOG = 232829990938 %} why this working
{% set SAFE_BLOG = module.blog_filer_options.select_blog %} why not this one.\u00a0 even both are numaric data.\u00a0
<\/SPAN><\/P><\/p>\n","protected":false},"excerpt":{"rendered":"

{% set SAFE_BLOG = 232829990938 %}{% set SAFE_LIMIT = module.number_of_posts %}{% set SAFE_TAG = module.blog_filer_options.tag_field.slug %}{% set POST_TYPE = module.blog_filer_options.select_post_type %}{% set posts = [] %}{% if POST_TYPE == ‘blog_recent_posts’ %}{% set posts = blog_recent_posts(SAFE_BLOG, SAFE_LIMIT) %}{% elif POST_TYPE == “blog_popular_posts” %}{% set posts = blog_popular_posts(SAFE_BLOG, SAFE_LIMIT, ”) %}{% elif POST_TYPE == “filter_by_tags” %}{% set […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[14],"tags":[],"_links":{"self":[{"href":"http:\/\/gogetmuscle.com\/index.php\/wp-json\/wp\/v2\/posts\/1919"}],"collection":[{"href":"http:\/\/gogetmuscle.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/gogetmuscle.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/gogetmuscle.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/gogetmuscle.com\/index.php\/wp-json\/wp\/v2\/comments?post=1919"}],"version-history":[{"count":1,"href":"http:\/\/gogetmuscle.com\/index.php\/wp-json\/wp\/v2\/posts\/1919\/revisions"}],"predecessor-version":[{"id":1920,"href":"http:\/\/gogetmuscle.com\/index.php\/wp-json\/wp\/v2\/posts\/1919\/revisions\/1920"}],"wp:attachment":[{"href":"http:\/\/gogetmuscle.com\/index.php\/wp-json\/wp\/v2\/media?parent=1919"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/gogetmuscle.com\/index.php\/wp-json\/wp\/v2\/categories?post=1919"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/gogetmuscle.com\/index.php\/wp-json\/wp\/v2\/tags?post=1919"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}