Warning: Illegal string offset in

Support General Warning: Illegal string offset in

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #33325
    Martin RybosMartin Rybos
    Participant

    Hi.
    When I create a setting to hide the title (checkbox), I get error.
    Warning: Illegal string offset 'hidepagetitle' in.
    When I open the page in the admin and press the hidepagetitle button and update, error disappears and it works.

    <h1 class="entry-title">
    <a href="<?php the_permalink(); ?>" rel="bookmark">
    <?php 
    $hidepagetitle = rwmb_meta('dipost');
    
    if ($hidepagetitle['hidepagetitle'] == false){
                the_title();
    }
    ?></a></h1>

    Why am I getting that error?
    Thanks

    #33334
    Long NguyenLong Nguyen
    Moderator

    Hi,

    Please refer to this topic to prevent the error appears https://support.metabox.io/topic/assign-sub-field-value-to-the-variable/

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.