Forum Replies Created
-
AuthorPosts
-
Long Nguyen
ModeratorHi,
On the backend, I think you do not need to style the text. On the frontend, when outputting the field value, you can wrap the field value in a
<div>with class.<div class="my-class"> <?php echo rwmb_meta( 'lyric_field' ) ?> </div>Then style this class with some CSS code
.my-class { font-size: 18px; color: red; }Long Nguyen
ModeratorHi,
Follow on this topic https://support.metabox.io/topic/cpt-loop-by-category/, you can see the variable
args{% set args = { post_type: 'project', posts_per_page: 10, tax_query: [ { taxonomy: 'taxonomy-slug', field: 'slug', terms: 'term-slug' } ] } %}For example, I have a post type slug
book, taxonomy slugbook-kind, term slugnovel. Screenshot https://share.getcloudapp.com/6qurDGdB. The variable args should be{% set args = { post_type: 'book', posts_per_page: 10, tax_query: [ { taxonomy: 'book-kind', field: 'slug', terms: 'novel' } ] } %}June 5, 2021 at 1:29 PM in reply to: ✅Having trouble displaying relationships with admin columns pro #28722Long Nguyen
ModeratorHi Jonathan,
It looks like the Admin Columns Pro is not compatible with MB Relationships. The integration plugin is developed by their team, so please try to contact their support to ask for help in this case.
Long Nguyen
ModeratorHi,
Please try to deactivate all plugins except Meta Box, MB extensions and use a default theme of WordPress to re-check this issue.
And please share your page URL, I will help you to check the issue.
June 5, 2021 at 12:50 PM in reply to: ✅Add an iframe embed code in a user custom field, display via shortcode in post #28720Long Nguyen
ModeratorHi Lucas,
The field
textortextareacontent does not support parsing the shortcode in the attribute URL. If you want to do that, please use the PHP code in your template fileecho '<iframe src='. do_shortcode( '[rwmb_meta id="field_url" object_id=1 object_type="user"]' ) .' width="680" height="480" allowfullscreen></iframe>';Or simply add the tag
<iframe>in the field WYSIWYG content with attribute URL<iframe src="https://www.youtube.com/embed/nmRKrf0JguY" width="680" height="480" allowfullscreen></iframe>then use the shortcode to show the user field value
[rwmb_meta id="field_url" object_id=1 object_type="user"]Get more shortcode details here https://docs.metabox.io/shortcode/
Long Nguyen
ModeratorHi Jorge,
Please follow this documentation to know how to use the Custom Query https://docs.metabox.io/extensions/mb-views/#custom-query
Let me know how it goes.
June 5, 2021 at 6:19 AM in reply to: ✅Custom Post Type Post - Show in nav menus - not working #28716Long Nguyen
ModeratorHi,
Did you create pages or something have the same singular slug
boat,tourist-info? It might not work properly if there are two pages that have the same slug.Another way, you can use a different slug and move posts to that slug by using this plugin https://wordpress.org/plugins/post-type-switcher/
Long Nguyen
ModeratorHi Fergal,
Thank you for getting in touch.
Basically, you can use the field single_image and assign it to the taxonomy. Then in the View editor, click on the button Insert Field > tab Term > select Term info (name, URL ...) and Term Meta to show on the taxonomy page.
Screenshot https://share.getcloudapp.com/jkuPyv7N
June 4, 2021 at 3:58 PM in reply to: ✅Having trouble displaying relationships with admin columns pro #28703Long Nguyen
ModeratorHi Jonathan,
Can you please deactivate the plugin Admin Columns Pro and re-check this issue?
Long Nguyen
ModeratorHi,
The plugin Time Content might help you to set the time to access page content https://wordpress.org/plugins/timed-content/
Long Nguyen
ModeratorHi,
Sorry for the mistake, this field does not allow to access the Media Library. I've updated the documentation for this case.
June 4, 2021 at 11:14 AM in reply to: ✅suggestion: add Meta Box warning when permalinks not set #28696Long Nguyen
ModeratorHi,
Thank you for your feedback.
I will inform the developer team to consider adding it to the to-do list for future development of the plugin.
June 4, 2021 at 6:18 AM in reply to: ✅Custom Post Type Post - Show in nav menus - not working #28694Long Nguyen
ModeratorHi,
I didn't see an issue like that on my end. Please re-save permalink settings and follow the Debugging Information step here to troubleshoot this issue.
Let me know how it goes.
Long Nguyen
ModeratorHi,
Thanks for your feedback.
I will add a note on the documentation about this case.
Long Nguyen
ModeratorHi,
Please follow related topics to show posts from a specific term
https://support.metabox.io/topic/cpt-loop-by-category/
https://support.metabox.io/topic/displaying-two-cpts-in-custom-taxonomy-term/ -
AuthorPosts