Forum Replies Created
-
AuthorPosts
-
Bellul
ParticipantOk, 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.Bellul
ParticipantAny solution yet? Is it just safe to ignore?
/Bengt
Bellul
ParticipantI 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.33Best,
BengtBellul
ParticipantIt is already in a template file.
Bellul
ParticipantThanks! It is taxonomy_advanced.
March 28, 2023 at 5:24 PM in reply to: ✅CPT, Custom Taxonomy with added image field: how do I get the image? #41240Bellul
ParticipantThanks! That did the trick!
/Bengt
March 27, 2023 at 8:57 PM in reply to: ✅CPT, Custom Taxonomy with added image field: how do I get the image? #41230Bellul
Participantprint_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"?
March 27, 2023 at 12:52 PM in reply to: ✅CPT, Custom Taxonomy with added image field: how do I get the image? #41222Bellul
ParticipantThanks!
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".March 22, 2023 at 7:04 PM in reply to: ✅"Remove default meta box" does not remove the metabox #41167Bellul
ParticipantThanks! How could I miss that??
March 21, 2023 at 10:29 PM in reply to: ✅"Remove default meta box" does not remove the metabox #41156Bellul
ParticipantI 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?
March 22, 2022 at 10:43 PM in reply to: ✅WP_Query and filter by custom post type and custom taxonomy term #35215Bellul
ParticipantThanks! 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?
March 22, 2022 at 10:33 PM in reply to: ✅WP_Query and filter by custom post type and custom taxonomy term #35214Bellul
ParticipantThis 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?
Bellul
ParticipantThanks, 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?
Bellul
ParticipantThanks! 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?
Bellul
ParticipantThanks! 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.
-
AuthorPosts