Forum Replies Created
-
AuthorPosts
-
Long Nguyen
ModeratorHi,
The setting
contextof meta box works as well on my site, here is the screenshot https://monosnap.com/file/8SU74JQCpxclzDMPqWSHJfHg9mZ8YGCode:
function your_prefix_function_name() { MB_Relationships_API::register( [ 'id' => 'job-to-post', 'from' => 'job', 'to' => [ 'object_type' => 'post', 'post_type' => 'post', 'meta_box' => [ 'context' => 'normal', ], ], ] ); }Long Nguyen
ModeratorHi Cees,
Yes, it is possible. You can use the field
taxonomyto select taxonomy for the post like the default taxonomy box of WordPress. You can also edit the custom taxonomy, disable the optionShow on edit pagein the Advanced tab to remove the default box.
https://docs.metabox.io/fields/taxonomy/Long Nguyen
ModeratorHi,
You can use the Inspect tool of the browser to find the column ID of any table (post type, user ...), screenshot https://monosnap.com/file/GRMpugVIrZa1MqEtwhg3rp46hjTGH9
Long Nguyen
ModeratorHi Jeremy,
Can you please share the code that gets the post parent? Do you want to set the current post as the post parent?
Long Nguyen
ModeratorHi,
Yes, you can run a custom function in the View as well.
function my_function() { return "My Custom Function!!!"; }View:
{{ mb.my_function() }}January 29, 2022 at 10:20 PM in reply to: ✅How to specify Alt and Title Tags for get_the_post_thumbnail? #33564Long Nguyen
ModeratorHi AJ,
You can refer to this topic to generate attribute
srcsetof the<img>tag https://support.metabox.io/topic/generating-srcset-code-in-views-twig/Long Nguyen
ModeratorPlease share your site credentials via the ticket system https://metabox.io/contact/
I will help you to check the issue.Long Nguyen
ModeratorHi,
Yes, the MB extensions are compatible with WordPress 5.9. If you experience any issue with WordPress 5.9 while using MB extensions, feel free to post it here. The development team will fix it as soon as possible.
Long Nguyen
ModeratorHi Dom,
Glad to hear it works. You need to click on the button Generate to get the code, it is also written down in the documentation
On this screen, set the text domain (for field labels in case you want to translate them in a multilingual website) and the function name. Then click the Generate button to generate the code. Finally, click the Copy button to copy the code and paste it into your theme’s functions.php file.https://docs.metabox.io/extensions/meta-box-builder/#getting-php-code
Long Nguyen
ModeratorSorry, here is the documentation of Slick JS https://kenwheeler.github.io/slick/
Long Nguyen
ModeratorHi Dan,
So you need to install and activate the plugin CPT UI to show the migration feature. Let me know if it works
January 28, 2022 at 9:40 PM in reply to: ✅Beaver Themer not displaying MB image when inserted as shortcode. #33544Long Nguyen
ModeratorHi Richard,
Please refer to this topic to get the image URL with the helper shortcode
https://support.metabox.io/topic/field-connector-not-working-with-simple-image-field-when-inserting-into-html/Read more on the documentation https://docs.metabox.io/shortcode/
Long Nguyen
ModeratorHi Fernando,
Please share the code that creates the CPT on your site. I will try to run it on my end and check the issue.
Refer to this documentation https://docs.metabox.io/extensions/meta-box-builder/#getting-php-code
January 28, 2022 at 12:41 PM in reply to: ✅How to specify Alt and Title Tags for get_the_post_thumbnail? #33539Long Nguyen
ModeratorHi AJ,
You can get the post thumbnail URL by using this WP function
get_the_post_thumbnail_url()
https://developer.wordpress.org/reference/functions/get_the_post_thumbnail_url/and refer to this topic to add the title, alt attributes to the
<img>tag
https://support.metabox.io/topic/how-to-add-dynamic-alt-tags-to-mb-get_avatar/Long Nguyen
ModeratorHi,
You can run a PHP function in View via the proxy
mb. Refer to this documentation https://docs.metabox.io/extensions/mb-views/#running-php-functions
and this topic https://stackoverflow.com/questions/21314915/getting-data-from-an-svg-file-using-php{{ mb.file_get_contents('https://cdn.shopify.com/s/files/1/0496/1029/files/Freesample.svg') }} -
AuthorPosts