Forum Replies Created
-
AuthorPosts
-
Long Nguyen
ModeratorHi guys,
There is a difference between the double quote "
"190"and quotation mark ””190″. Please type the double quote correctly.[mb_frontend_form id="fields-for-agent" post_type="agent"]and the attribute
post_typeis used in the shortcode[ mb_frontend_form ]Long Nguyen
ModeratorThanks for your feedback. We will update the documentation.
Long Nguyen
ModeratorHi,
Each theme has its own layout structure so the CSS code would be different. If you use the theme Estar, here is the CSS code.
body.page-id-2152 .entry-title, body.page-id-2152 .entry-content > h3, body.page-id-2152 .entry-content > p { display: none; }2152is the ID of your frontend dashboard page.April 12, 2021 at 8:22 PM in reply to: ✅How to Autofill the Title of the cutstom post with the value of the 2 fields #27180Long Nguyen
ModeratorHi,
The Builder does the same as the code, you can click on the button Generate PHP code to see how it works. See more here https://docs.metabox.io/extensions/meta-box-builder/#getting-php-code.
Did you try to use the custom code?
Long Nguyen
ModeratorHi,
Does the permalink of a single post work correctly? You can try to re-save the permalink settings to flush the cache.
If it still does not work, please follow the step Debugging Information here https://support.metabox.io/topic/how-to-create-a-new-topic/ and let me know how it goes.
Long Nguyen
ModeratorHi,
The plugin does not support removing the welcome text. I will inform the development team to add this case to the backlog development.
April 12, 2021 at 10:45 AM in reply to: ✅How to Autofill the Title of the cutstom post with the value of the 2 fields #27169Long Nguyen
ModeratorHi,
Please follow this topic https://support.metabox.io/topic/adding-metabox-field-data-to-the-post-title/ to know how to update the post title by the field value.
Long Nguyen
ModeratorHi,
You can create a tab field first, then create fields under. It looks like
- tab 1
- field 1
- field 2
- tab 2
- field 3
- field 4
See my screenshot https://share.getcloudapp.com/WnuYJ9oZ.
Change the tab style in Settings > Tab style, https://share.getcloudapp.com/P8u5bzn0.April 12, 2021 at 6:16 AM in reply to: ✅How do I prevent search engines from indexing custom posts #27167Long Nguyen
ModeratorHi Oliver,
There are some ways to prevent indexing the CPT
- Uncheck the optionPublicly queryableunderExclude from search
- Use the plugin Yoast SEO
- PHP code to show the tag<meta name="robots" content="noindex, follow">Get more details here
https://wordpress.stackexchange.com/questions/281382/hiding-custom-post-type-from-google
https://stackoverflow.com/questions/36581224/stop-wordpress-custom-post-type-from-appearing-in-search-enginesApril 12, 2021 at 6:08 AM in reply to: ✅WP_Query Multiple Relationships relation = AND doesn't work ? #27166Long Nguyen
ModeratorHi,
I've added this case to the backlog development, I will get back to you if I have any information.
Long Nguyen
ModeratorHi,
Here is the code in the article
if ( $user && is_object( $user ) ) { $value = rwmb_meta( 'custom_avatar', array( 'object_type' => 'user' ), $user->data->ID ); if ( $value ) { $avatar = "<img src='" . $value['url'] . "' class='avatar avatar-" . $size . " photo' alt='" . $alt . "' height='" . $size . "' width='" . $size . "' />"; } }After changing to the field
image, it should beif ( $user && is_object( $user ) ) { $value = rwmb_meta( 'custom_avatar', array( 'object_type' => 'user' ), $user->data->ID ); $value = reset( $value ); if ( $value ) { $avatar = "<img src='" . $value['url'] . "' class='avatar avatar-" . $size . " photo' alt='" . $alt . "' height='" . $size . "' width='" . $size . "' />"; } }Long Nguyen
ModeratorHi Ahmed,
Thank you for reaching out.
To use the MB Views to show the term meta from the single post template, you need to have a basic knowledge about WordPress, PHP and Twig code.
To get the term meta, please follow this documentation https://docs.metabox.io/extensions/mb-term-meta/.
Long Nguyen
ModeratorHi Henri,
Twig is using for creating templates, so there are some limitations if you try to create some logical code like PHP. You can just create a PHP function then call it in the View to show the value.
Long Nguyen
ModeratorHi Joe,
Thank you for reaching out.
The class
MB_Admin_Columns_Postis deprecated, please use the class\MBAC\Post. Get more details on the documentation https://docs.metabox.io/extensions/mb-admin-columns/#custom-admin-columns.Long Nguyen
ModeratorHi,
Thank you for reaching out.
We have a plugin Auto Listings which is built base on Meta Box and some extensions. You can sell the listings as WooCommerce does.
Get more information here https://wpautolistings.com/.
-
AuthorPosts