Forum Replies Created
-
AuthorPosts
-
Anh Tran
KeymasterHi John,
I'm very sorry for what you feel. Long didn't give enough information on the answer, but he didn't mean to be rude.
Regarding to your question, if I understand correctly, you want to build a custom filter for Facet using Meta Box. Is that correct? I'm not sure if that's right when you say "hard coded".
Just FYI, the integration with Meta Box and Facet allows you to use Facet to create your own filters based on custom fields created with Meta Box. I think Facet has a good collection of filter types (checkboxes, radio, select) and the data sources. What we did in the integration is adding Meta Box fields as a data source for Facet, which will allow you to use them to filter posts later.
I'm not sure how to write custom filter for Facet, cause that's not what we do with the integration. I also look at Facet docs, and the only resource I found is the
facetwp_facet_typeshook, which probably the right hook you want to use to add more filter type:https://facetwp.com/documentation/developers/advanced/facetwp_facet_types/
If I don't understand your question correctly, please clarify it. I'll try my best to help. And if you're not happy with the product, I can issue a refund without any problem.
Anh Tran
KeymasterHi Drake,
I've just tested again with the latest version of Meta Box AIO and don't see any errors in the console. Please see my video:
https://www.loom.com/share/9e7ea11e6a974e1db22dd8d82258a32e
I remember I fixed this bug in the latest version of MB Views.
Anh Tran
KeymasterThe site puts your topics in pending mode, probably due to spam protection. I've restored your topic and it's visible now.
Anh Tran
KeymasterWe have resolved this issue on Github! The change was merged into the plugin. Thanks Content Pilot for your help!
Anh Tran
KeymasterHi Austin,
Thanks for your feedback. I have it on the backlog, but not really sure what it does. With the MB REST API extension, all fields are available for the REST API already. Can you share your thoughts?
Anh Tran
KeymasterHmm, Paypal didn't process the refund. I've just done that again. https://imgur.com/1saExap
Anh Tran
KeymasterI got it. The LearnPress team included an old version of Meta Box in their plugin and causes the problem. I'll contact them to fix this.
In the meantime, I've issued the refund for you.
Anh Tran
Keymaster@B: You don't need to set custom attributes, all you need to do in MB Builder is set the field ID to content or excerpt, like this: https://imgur.com/998hlgP. Nothing more.
And if you can, add this code to your theme's functions.php file. Or you can install the Code Snippet plugin (free on .org) and add the following code:
add_filter( 'rwmb_content_field_meta', function() { $post_id = filter_input( INPUT_GET, 'post', FILTER_SANITIZE_NUMBER_INT ); return get_post_field( 'post_content', $post_id ); } ); add_filter( 'rwmb_content_value', '__return_empty_string' ); add_filter( 'rwmb_excerpt_field_meta', function() { $post_id = filter_input( INPUT_GET, 'post', FILTER_SANITIZE_NUMBER_INT ); return get_post_field( 'post_excerpt', $post_id ); } ); add_filter( 'rwmb_excerpt_value', '__return_empty_string' );Anh Tran
Keymaster@hartsook:
#1. The thing with excerpt/content and which is chosen to display is probably another thing from WordPress in general, not BB or Meta Box. I think it's better to put it here for clarity:
If you display post excerpt: in BB, you might want to use text/html module and connect to post excerpt (not Meta Box field), then it will does the following thing:
- If the post excerpt is not empty -> take it
- If the post excerpt is empty -> generate excerpt from the post content
In both case, the excerpt length will be still applied, e.g. the text displayed is truncated to the specific length of your choice.
It's the default behavior in WordPress in general. And it's confusing for a lot of people!
If you display post content: then only text in the post content is get and displayed. Nothing is confusing here.
#2. The other thing is using the field connector in BB
When we do all the things in the previous replies, Meta Box think these fields are for post content and post excerpt and doesn't store any value in the custom fields. Therefore, you must connect the text/html module in BB to post content/post excerpt instead of Meta Box Fields.
This is what you already did, and correctly. I just make it clearer!
Anh Tran
KeymasterI made a short video to explain things here:
https://www.loom.com/share/0b651f654cce47aa82419cd91631e100
And here is the code for both content and excerpt:
March 30, 2020 at 9:24 AM in reply to: ✅Version 1.50 removed MB_Admin_Columns_User and MB_Admin_Columns_Post classes #18734Anh Tran
KeymasterHi, sorry for this issue. I've updated the docs and added to the plugin changelog.
Anh Tran
KeymasterHi, we have a tutorial for doing this here. It's for post content, but it also works for post excerpt if you change the field ID in the tutorial to excerpt.
Here is the code: https://pastebin.com/t3tBWcG6
March 27, 2020 at 9:00 PM in reply to: ✅How to extend MB Frontend Submission to anonymous posts #18714Anh Tran
KeymasterIf you use fields like
file_advancedorimage_advanced, then they requires access to Media Library to upload files, which requires users to log in and have proper capability.In this case, you can use only
fileorimagefield to upload files.Anh Tran
KeymasterHi Sofyan,
Thanks for your feedback and help. I've fixed that in the version 1.5.0.
March 27, 2020 at 5:14 PM in reply to: ✅Bug: Frontend form submit button stuck as disabled when validation fails #18707Anh Tran
KeymasterHi Mrl,
The change was added in the Meta Box AIO v1.11.0. Can you please clear the browser cache and try again?
-
AuthorPosts