• Resolved dsburdette

    (@dsburdette)


    I use the “Multiple Content Blocks” plugin by Ontwerpstudio Trendwerk for adding additional content blocks to my theme layouts not unlike the “Enable Mobile content” option of Mobile Smart Pro. I’m finding that when I turn on “Enable Mobile content” however, that the content I’m placing in the “Mobile Version” editor for a page is also being displayed as the content for the Multiple Content Blocks (MCB) plugin on the front-end of the site.

    My theme code for MCB is: <?php the_block('Intro'); ?> which basically defines an editor box on pages just like the Enable Mobile Content option of Mobile Smart Pro. Both editor boxes show on the backend and have their own unique content, but instead of the content entered into the “Intro” editor being shown, the mobile content is being shown there and in the normal WordPress <?php the_content(); ?>. In summary, the mobile content is somehow hijacking my MCB call and being shown twice on my mobile page.

    I hope that makes sense in some way.

    http://wordpress.org/plugins/mobile-smart/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author dolby_uk

    (@dolby_uk)

    Can you send me a support request on the http://www.mobile-smart.co.uk/support as there may be something I can do to help here.

    Dan

    Thread Starter dsburdette

    (@dsburdette)

    Dan-

    Thanks for following up. I’ve reposted this question to your support page on your web site per your request. Thank you for your time and attention to my question.

    Plugin Author dolby_uk

    (@dolby_uk)

    dsburdette,

    Thanks for contacting me. Just to post the solution here for anyone else with the same issue:

    you can call the MCB call with the ‘apply_filters’ call as false, e.g.:

    the_block(‘intro,array(
    ‘type’ => ‘editor’,
    ‘apply_filters’ => false
    ));

    Technical explanation:

    The reason is that if ‘apply_filters’ is true, MCB grabs the content from ‘the_content’, which Mobile Smart Pro overrides with the mobile content. The reason that MCB runs the_content call is to get the standard content shortcodes etc applied to it, however it’s not possible for the Mobile Smart Pro plugin to know what type of ‘the_content’ filter is being applied.

    Cheers,

    Dan

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Conflict w/ "Multiple content blocks" plugin by Ontwerpstudio Trendwerk?’ is closed to new replies.