Forum Replies Created
-
AuthorPosts
-
Long Nguyen
ModeratorHi Brian,
You can use the Slick JS to create a slider, please read more on the documentation https://docs.metabox.io/fields/image-advanced/#template-usage
And this to output the field
image_advancedhttps://docs.metabox.io/fields/image-advanced/#template-usage<div class="your-class"> <?php $images = rwmb_meta( 'info', array( 'size' => 'thumbnail' ) ); foreach ( $images as $image ) { echo '<a href="', $image['full_url'], '"><img src="', $image['url'], '"></a>'; } ?> </div>Long Nguyen
ModeratorHi AJ,
If you want to add the custom alt text, you can use the
<img>tag and the WordPress functionget_avatar_url(). For example:<img src="{{ mb.get_avatar_url( author.ID ) }}" alt="{{ author.first_name }} - {{ author.last_name }}" />Refer to the documentation https://developer.wordpress.org/reference/functions/get_avatar_url/
Long Nguyen
ModeratorHi Dom,
Can you please deactivate all plugins except Meta Box, MB AIO and switch to the standard theme of WordPress (Twenty TwenyOne) and re-check this issue?
Long Nguyen
ModeratorHi,
I do not see the plugin CPT UI activated on your site which will appear under the Meta Box menu.
https://monosnap.com/file/YMGdNeb4YmRMuM5mb9Ejy3jmUHYVBDLong Nguyen
ModeratorHi Dom,
You can use Git to create the release for the custom plugin, it also keeps up the vendor folder but removes some composer files that aren't needed to use in the release plugin.
Then on other sites, you can just pull the new update from that repository. Read more on this documentation https://docs.github.com/en/repositories/releasing-projects-on-github/managing-releases-in-a-repository
Long Nguyen
ModeratorYou are welcome 🙂
Long Nguyen
ModeratorHi,
Thanks for your feedback.
I've informed the development team to fix this in the next update.
Long Nguyen
ModeratorHi,
The Thumbnail support is the featured image. You can check this option is enabled in the editor
- Classic Editor: https://monosnap.com/file/gOBVyDCuyMGxfoe1Ur6vqZe0is5sX7
- Block Editor: https://monosnap.com/file/0yGeIbr1pGpVUSVgLlIsSoejg4dvl1Long Nguyen
ModeratorHi Ryan,
The parameter
fromortoaccepts the array of object IDs, you can create an array ofcourseIDs and assign it to the relationshipfrom-course-to-scholar$course_post_id = array(); if ( $course_query->have_posts() ) { while ($course_query->have_posts()) { $course_query->the_post(); array_push( $course_post_id, get_the_ID() ); } }'query_args' => array( 'relationship' => array( 'id' => 'from-course-to-scholar', 'from' => $course_post_id ), )January 27, 2022 at 11:05 AM in reply to: ✅rwmb-get-object-fields before initialisation of wordpress #33500Long Nguyen
ModeratorHi,
The helper function
rwmb_***()works only when the field is already registered. In Meta Box, fields are registered at hookinitwith priority 20. So, you need to run the helper function after that.January 27, 2022 at 10:42 AM in reply to: ✅How to set taxonomy advanced options checked/selected on form load? #33499Long Nguyen
ModeratorThanks for sharing your solution.
Long Nguyen
ModeratorHi Joo,
If you want to create a custom table to store the ranking value, you can use the extension MB Custom Table https://docs.metabox.io/extensions/mb-custom-table/
January 27, 2022 at 9:48 AM in reply to: Custom Fields & Setting not showing on Edit Field Group #33495Long Nguyen
ModeratorHi,
The issue looks like this topic https://support.metabox.io/topic/custom-field-edit-field-group-is-blank-data-still-export-with-json/
Can you please create a new field group and re-check the issue?
January 26, 2022 at 9:32 PM in reply to: ✅How to set taxonomy advanced options checked/selected on form load? #33485Long Nguyen
ModeratorHi Marco,
You can use the setting
stdto set a default value of theselect_advancedfield type. For example:[ 'name' => 'Taxonomy', 'id' => 'taxonomy', 'type' => 'taxonomy_advanced', 'taxonomy' => 'category', 'field_type' => 'select_advanced', 'multiple' => true, 'std' => array(2,3,4), //default term IDs ],January 26, 2022 at 9:05 PM in reply to: Possible to use filters (rwmb_{$field_id}_html) when using custom tables? #33484Long Nguyen
ModeratorHi,
In the admin columns, you can use the filter
rwmb_the_valueto customize the output value. Please read more here https://docs.metabox.io/filters/#rwmb_the_value -
AuthorPosts