Forum Replies Created
-
AuthorPosts
-
May 27, 2024 at 10:47 PM in reply to: Impossible to display the custom field (image) of a custom term. #45554
Peter
ModeratorHello,
It is possible to use those functions in the View editor. You can see in your code, you are using a WordPress function as well
get_terms(){% set portfolios = mb.get_terms( args ) %}View editor supports Twig, which is a PHP template engine. It doesn't mean "I bought meta box for not doing php, as I'm not a PHP coder". You should understand how the PHP function works to combine it with Twig code to use the view editor.
Following the documentation https://docs.metabox.io/extensions/mb-views/#twig
And last thing, if you are not familiar with PHP, you can contact us and request a customization code with an extra fee.
Peter
ModeratorHello,
You can add the helper shortcode [rwmb] to the Text widget of Elementor to output a field value in the frontend. Please follow the documentation https://docs.metabox.io/shortcode/
Peter
ModeratorHello Will,
Can you please clarify the question? Do you mean to add a custom field to the WooCommerce coupon post in the admin area? Or output the field value of a coupon post in the frontend?
Peter
ModeratorHello,
Is there any chance you follow the suggestion to increase the PHP setting and check the issue again?
The field group in the builder is a post type so it is affected by the PHP setting
max_input_vars. You can refer to this topic
https://support.metabox.io/topic/after-edit-custom-field-group-only-applies-to-posts/#post-43114Peter
ModeratorHello Paul,
Did you try to add the post type attribute to the frontend dashboard?
[mb_frontend_dashboard edit_page="10" columns="date,status" post_type='green-care-site']May 27, 2024 at 10:03 PM in reply to: CPT Generated Page does not add `aria-current="page"` to navigation item #45549Peter
ModeratorHello,
It is the standard feature of WordPress itself. You can go to Appearance > Menus > Add a custom link menu with an absolute URL to the archive CPT page and check the current menu item again. Here is the screenshot https://imgur.com/vTpnF5G
Peter
ModeratorHello,
Maybe it is affected by another plugin or theme. Please deactivate all plugins except Meta Box, MB AIO, switch to a WordPress theme and let me know how it goes.
Peter
ModeratorYes, there is another issue with the conditional logic in the modal. I've escalated the issue to the development team to fix it also.
Thank you.
Peter
ModeratorHello,
I see the issue. You can check the code to open the loop in the documentation
{% for post in posts %}but in your code, it is
{% for post in query.posts %}remove the query variable and check the issue again. Or use another variable name to avoid confusion:
{% set service_posts = mb.get_posts( args ) %} <div class="service-card"> {% for post in service_posts %} ...Peter
ModeratorHello,
The issue is related to the older version of Meta Box. Please make sure you have the latest version of the Meta Box plugin 5.9.8 and check the issue again.
Peter
ModeratorHello Paul,
Do you add the post type attribute to the frontend dashboard?
[mb_frontend_dashboard edit_page="124" post_type="custom-cpt-slug"]Please share two shortcodes that you add to frontend submission and frontend dashboard pages. Following the documentation https://docs.metabox.io/extensions/mb-frontend-submission/#user-dashboard
May 25, 2024 at 12:04 PM in reply to: ✅How to setup the term meta icon using the last google material symbols? #45532Peter
ModeratorHello,
You can download the SVG file to your site and follow the documentation to create the icon field, no need to create the JSON file.
https://docs.metabox.io/fields/icon/#using-svgsor download the PNG file and use the single image field for simplicity.
https://docs.metabox.io/fields/single-image/May 25, 2024 at 11:55 AM in reply to: Impossible to display the custom field (image) of a custom term. #45530Peter
ModeratorHello,
If you want to show the term meta (image) of a term on the single post page. You can try to use two WordPress functions:
- get the current post ID: get_queried_object_id()
- get terms by post ID: get_the_terms()If you are not able to complete the task, we offer a customization code with an extra fee. Please contact us here for more details https://metabox.io/contact/.
Peter
ModeratorHello,
The map and phone number elements are wrapped in an
<a>tag, screenshot https://imgur.com/gyWTG1cYou can review your code and remove the
<a>tag and check the issue again.Peter
ModeratorHello,
There isn't an option to change the heading tag h4 to another one. You can add a custom CSS class to the field setting and increase the font size of the custom class. Pleass check this screenshot https://imgur.com/JrKDghr
-
AuthorPosts