Support Forum » User Profile

Forum Replies Created

Viewing 15 posts - 1 through 15 (of 29 total)
  • Author
    Posts
  • in reply to: Error when update under Bricks Builder! #49091
    BellulBellul
    Participant

    Ok, thanks. This time it was a Brick site (still on version 1), updating from Meta Box 5.10.10 to 5.10.15 and Meta Box AIO
    from 2.2.1 to 3.1.1.

    in reply to: Error when update under Bricks Builder! #49089
    BellulBellul
    Participant

    Any solution yet? Is it just safe to ignore?

    /Bengt

    in reply to: Error when update under Bricks Builder! #48892
    BellulBellul
    Participant

    I got the same error mails ("Your Site is Experiencing a Technical Issue") today on several sites (not all have Bricks) when updating Meta Box 5.10.10 to 5.10.13 and Meta Box AIO 2.2.1 to 3.0.1. The mails refer to "Meta Box" and gives the message:

    An error of type E_ERROR was caused in line 214 of the file /home/xxx/wp-content/plugins/meta-box/inc/fields/media.php. Error message: Uncaught Error: Failed opening required '/home/xxx/wp-content/plugins/meta-box/inc/templates/media.php' (include_path='.:/opt/alt/php81/usr/share/pear:/opt/alt/php81/usr/share/php:/usr/share/pear:/usr/share/php') in /home/xxx/wp-content/plugins/meta-box/inc/fields/media.php:214

    During the update in the backend I saw no errors! And afterwards I can not see any errors in backend or frontend. Is it safe to ignore these error mails?

    WordPress-version 6.8.2
    Aktivt tema: Bricks Child Theme (version 1.1)
    Nuvarande tillägg: Meta Box (version 5.10.13)
    PHP-version 8.1.33

    Best,
    Bengt

    in reply to: Warning: Attempt to read property "name" on string #44013
    BellulBellul
    Participant

    It is already in a template file.

    in reply to: Warning: Attempt to read property "name" on string #43998
    BellulBellul
    Participant

    Thanks! It is taxonomy_advanced.

    BellulBellul
    Participant

    Thanks! That did the trick!

    /Bengt

    BellulBellul
    Participant

    print_r($terms) gives only the standard WP content of the "author" taxonomy:

    
        [0] => WP_Term Object
            (
                [term_id] => 15
                [name] => John Doe
                [slug] => john-doe
                [term_group] => 0
                [term_taxonomy_id] => 15
                [taxonomy] => author
                [description] => Teacher
                [parent] => 0
                [count] => 0
                [filter] => raw
                [term_order] => 1
            )
    )

    Where is my MB custom field "tax_image" connected to my taxonomy "author"?

    BellulBellul
    Participant

    Thanks!

    If I change to
    $images = rwmb_meta( 'tax_image', [ 'object_type' => 'term', 'size' => 'thumbnail' ], $terms );
    it still does not produce anything (and no error message). If I do print_r($images); it prints "1".

    in reply to: "Remove default meta box" does not remove the metabox #41167
    BellulBellul
    Participant

    Thanks! How could I miss that??

    in reply to: "Remove default meta box" does not remove the metabox #41156
    BellulBellul
    Participant

    I saw now the info: "Only works with the classic editor." So that answers my "why". But how do I remove them if I use the Gutenberg editor?

    BellulBellul
    Participant

    Thanks! I saw your answer after I sent my follow up question.

    The solution you propose, will not work with Oxygen Builder > Repeater > WP_Query > Advanced, I guess? So then I can use my wpdb-solution or is it better to use wpdb together with WP_Query as you propose? Or doesn't it matter which way a go?

    BellulBellul
    Participant

    This code works just fine:

    global $wpdb;
    $rows = $wpdb->get_results("
    SELECT
    	knowledge.ID,
    	posts.post_title
    FROM wp_xtr_knowledge knowledge
    	INNER JOIN wp_posts posts ON kunskap.ID = posts.ID
    WHERE
    	knowledge.kb_infosource = 202
    ORDER BY posts.post_date_gmt DESC
    ");
    if ($wpdb->num_rows > 0) {
    	foreach ( $rows as $row ) {
        	   echo $row->post_title . '<br>';
    	}
    }
    $wpdb->flush();
    

    But how does that query look like using WP_Query?

    in reply to: MB Views get term name #33397
    BellulBellul
    Participant

    Thanks, this seems to be the way. But it seems as if the array my_post_terms is empty (since the for loop does not outputs anything - I tested just to output a manual textstring). My taxonomy slug is "kb-pubyear". Is it a problem that the slug use a dash and not an underscore?

    in reply to: Advanced location rules missing Post ID? #32040
    BellulBellul
    Participant

    Thanks! Yes, I can see now that searching works. The reason I missed it was because the Page title I was searching for didn't look as expected. Instead of the title "Försök", your select box showed the title as "<mark class='searchwp-highlight'>Försök</mark>". Yes I use the plugin SearchWP. But if I go to Pages, the title shows up as "Försök" and in DB the field "post_title" in table "wp_posts" is also "Försök".

    So, why is the <mark>-code showing up in your Select box?

    in reply to: Advanced location rules missing Post ID? #32023
    BellulBellul
    Participant

    Thanks! But why does the Select box for Posts only show 10 pages (the first 10 in A-Z order)? I have many more pages, and I can't select the post a want! And I can't search for other pages.

Viewing 15 posts - 1 through 15 (of 29 total)