Forum Replies Created
-
AuthorPosts
-
July 15, 2022 at 8:56 PM in reply to: CPT with Custom Fields to show running totals of one Custom Field #37031
Long Nguyen
ModeratorHi,
You can create a custom query to fetch the donation post type and custom fields attached to each post. Refer to the documentation https://developer.wordpress.org/reference/classes/wp_query/
and this topic
https://support.metabox.io/topic/using-php-to-display-a-list-of-custom-posts-and-custom-fields/#post-36964Long Nguyen
ModeratorHi,
The error is displayed because if the user is not logged in, there is no property ID. If you want to check the user logged in, please use the WordPress function
is_user_logged_in(). For example{% if( mb.is_user_logged_in() ) %} Logged in {% else %} Guest {% endif %}Read more on the documentation https://developer.wordpress.org/reference/functions/is_user_logged_in/
Long Nguyen
ModeratorHi Sam,
Can you please share some screenshots of the issue? And the code that creates the custom fields on your site. I will check it on my end.
Long Nguyen
ModeratorHi,
Firstly, please re-save the permalink settings (Post name) and recheck this issue. If it does not help, please share the code that creates the post type on your site. I will help you to check this.
Long Nguyen
ModeratorHi,
I'm trying to investigate the issue and get back to you later. Thanks for your patience.
July 15, 2022 at 6:55 PM in reply to: ✅How To Display Associated Custom Taxonomy Terms in Related Posts Query Loop #37023Long Nguyen
ModeratorHi,
You can just add the separator after the code that outputs the term name
{{ presenter_type.name }} |To get more details about how to use Twig with View, please follow the documentation https://docs.metabox.io/extensions/mb-views/#twig
Long Nguyen
ModeratorHi,
Thanks for reaching out.
No worries, I've just marked the topic as Resolved. Let me know if you have any questions.
Long Nguyen
ModeratorHi,
Here is an example to check if there is a related post then display the heading.
{% set relationship = attribute( relationships, 'post-to-page' ) %} {% set posts = relationship.to %} {% if posts is not empty %} My heading here {% for post in posts %} {{ post.title }} {% endfor %} {% endif %}July 14, 2022 at 9:20 PM in reply to: ✅Website (wordpress) slows down dramatically when I enable Metabox plugin #37011Long Nguyen
ModeratorHi Paul,
Please check two screenshots before and after I deactivate all plugins except Meta Box and switch to the standard theme of WordPress (Twenty TwentyTwo). The slowdown issue looks resolved.
https://monosnap.com/file/E057jmGT9GjV8UfWwx7vskPsB981rP
https://monosnap.com/file/oH1DM2MvIjzUpcdxlvMXbVqeFUKbSVLong Nguyen
ModeratorHi,
Please understand that the view template is only rendered in the frontend so the jQuery library might not work in your case. Please follow this documentation to know how to enqueue the script file and implement the code again https://developer.wordpress.org/reference/functions/wp_enqueue_script/
Long Nguyen
ModeratorHi,
Thank you for your feedback.
I'm able to reproduce the issue on my end and escalate this issue to the development team to fix it in the next update.
Long Nguyen
ModeratorHi John,
You still need to create a query to count the number of posts. In any way, the query is the root method to count/fetch posts.
Long Nguyen
ModeratorHi,
By default, the field value should be saved to the database (table wp_postmeta). But in some advanced cases, you do not want to save the value to the default table and want to use that value for other purposes like sending emails, or updating another field value ... then you can use the Classic editor and disable this option.
If you use the Block editor (Gutenberg), just don't pay attention to this, the field value is still saved to the database.
Long Nguyen
ModeratorHi,
This issue has been resolved. Please access the License page again and let me know if you still have any issues with this.
Long Nguyen
ModeratorHi,
Please update the plugin MB AIO to the new version 1.16.3 and re-check this issue. Let me know how it goes.
-
AuthorPosts