Forum Replies Created
-
AuthorPosts
-
Long Nguyen
ModeratorHi,
Where do you add the code? In the file functions.php in the theme folder?
If you use the Oxygen Builder, it prevents the theme's file loaded. You can use the plugin Code Snippets to run the custom functions.
https://wordpress.org/plugins/code-snippets/Long Nguyen
ModeratorHi Fabian,
The meta box for relationships does not support adding more fields there. You need to create another meta box and custom fields to use.
Long Nguyen
ModeratorHi Cees,
Do you mean to move the current custom fields inside a group? The current field value will be lost because the field type group saves the value of the subfields in a serialized array. Read more here https://metabox.io/create-group-of-custom-fields-with-meta-box-group/#how-does-the-meta-box-group-save-data
I recommend grouping/categorizing the current fields in the tabs https://docs.metabox.io/extensions/mb-settings-page/#using-tabs
Long Nguyen
ModeratorHi James,
Thank you for reaching out.
You can use the function strip_tags to remove HTML tags from the list. For example:
{% set term_list = mb.get_the_term_list( post.ID, 'category', '', ', ' ) %} {{ mb.strip_tags( term_list ) }}Long Nguyen
ModeratorHi Jonathan,
I'm afraid it is not possible with MB Builder. You should use the code to register the field to dynamically get post titles and show them on the select options.
https://docs.metabox.io/fields/select/Long Nguyen
ModeratorHi Joseph,
To run a PHP function in View, please use the proxy
mb. Get more details on the documentation https://docs.metabox.io/extensions/mb-views/#running-php-functionsThere is a message under the View editor
Supports any HTML/CSS/JS and shortcodes. Use Twig to write conditions, loops and more. To run a PHP function, use mb.function_name(param).Long Nguyen
ModeratorHi Viktor,
Thank you for getting in touch.
Post object does not have property
field_idlikepost_titleorpost_contentto access directly. You can get the field value via the helper function through the proxymb.rwmb_meta()Refer to this topic https://support.metabox.io/topic/mb-view-by-shortcode/
Long Nguyen
ModeratorHi Eugene,
Thank you for reaching out.
You can use the function wp_insert_post() to insert post data. Refer to these topics
https://support.metabox.io/topic/adding-metabox-field-data-to-the-post-title/
https://wordpress.stackexchange.com/questions/84185/inserting-post-id-into-guid-before-wp-insert-postLong Nguyen
ModeratorHi,
Meta Box has not had an option to generate PDF files. You can use another plugin to do that https://www.wpbeginner.com/plugins/best-pdf-plugins-for-wordpress/.
Long Nguyen
ModeratorHi,
WordPress does not support uploading the SVG image by default, the image uploaded also does not have the thumbnails like other default formats JPG or PNG, it works just like the file. So you need to add fixed width and height to show the SVG image on the frontend.
Long Nguyen
ModeratorHi,
Please use the WordPress function
get_post_custom()to get all meta fields base on the post ID.
https://developer.wordpress.org/reference/functions/get_post_custom/Long Nguyen
ModeratorHi,
The option custom location only available for the field type file. You can create a custom field type to use your own settings https://docs.metabox.io/custom-field-type/.
Long Nguyen
ModeratorHi Jonathan,
There is no cache in this case. The new MB Builder saves the field group (meta box) and custom field settings in the database as a post meta. The builder gets the callback function's value for the select field and saves it to the database with the field group. So after you change the return value of the function, you also need to update the field group.
Long Nguyen
ModeratorHi Hartsook,
I've checked the images on your site and see that the images displayed in order like the backend. Screen record https://share.getcloudapp.com/Apuz6ewA
The problem is the builder shows the images from the right to left so you see they are reversed. You can try to check the order image with our helper shortcode
[ rwmb_meta id="image-advanced-id" ]Long Nguyen
ModeratorHi,
The text
\nwould not be parsed to the HTML tag<br>. You can use the HTML tag<br>in thetextareacontent to break a line.Get more details on the documentation https://docs.metabox.io/fields/textarea/
-
AuthorPosts