Forum Replies Created
-
AuthorPosts
-
January 18, 2020 at 9:43 AM in reply to: ✅OpenStreetMap is not loading properly in inner Tabs #17888
Anh Tran
KeymasterHi Saqib,
Thanks for your feedback. This bug is fixed here.
January 18, 2020 at 8:59 AM in reply to: ✅Hooking into get_post_metadata and add_post_metadata #17887Anh Tran
Keymaster@COMCEPT: currently, it's the only solution. We'll add more higher API to the plugin in future releases.
January 17, 2020 at 5:37 PM in reply to: ✅How to show image url with folder in all sizes from Rest API #17877Anh Tran
KeymasterHi,
Thanks for your suggestion. I've added "url" to all sizes. It will available in the next version of Meta Box.
Anh Tran
KeymasterHi Jackky,
I found the problems. It's kind of a complicated thing in Gutenberg, since the editor is generated on demand using JavaScript. So, some PHP options won't be applied. And in that case, the default settings of the editor is applied. I'm afraid I don't have a good solution for it at the moment.
Anh Tran
KeymasterHi Jackky,
I think the problem is the theme. As you know, WP allows theme to add custom style to the editor. And that might affect the plugin's CSS. I'd suggest you add some small CSS to the edit screen to fix this issue. We've got a tutorial on doing this.
Anh Tran
KeymasterHi Cristiano, it's just updated.
Anh Tran
KeymasterHi Jackky,
Thanks for your feedback. It's fixed in the latest version.
Anh Tran
KeymasterHi,
Thanks for asking a great question.
While I think it's totally doable with Meta Box, it requires custom coding. I imagine the steps will be like this:
User clicks a button to mark a post or User a “Favorite”
- Add a custom link to the post for users to mark as a favorite
- When clicking that link, send an Ajax request to do the job
- In the Ajax callback, use MB_Relationship_API::add to create connections between users and posts
That user’s favorites can be displayed in a list for them
This can be done with the code in the documentation.
Users can have multiple favorites. Their favorites are unique to them
Just set the relationship as many-to-many (default) and MB Relationships can handle the rest.
I hope that can give you some ideas. Unfortunately, I can't provide ready-to-use code.
January 16, 2020 at 2:25 PM in reply to: ✅Hooking into get_post_metadata and add_post_metadata #17860Anh Tran
KeymasterHi Daniele & Dave,
You can use raw SQL code to read and write data to your custom table. It's simple like this:
// Read global $wpdb; $value = $wpdb->get_var( 'SELECT field_id FROM your_table WHERE ID=123' ); // Write global $wpdb; $wpdb->update( 'your_table', ['field_id' => $value], ['ID' => 123] );January 16, 2020 at 2:12 PM in reply to: ✅Custom Fields Don't Display as Dynamic Data in Elementor #17858Anh Tran
KeymasterWe have figured it out.
The problem is a field group created in MB Builder saves data to custom table, but there's no custom table created. Removing custom table makes the fields saving again.
January 14, 2020 at 5:03 PM in reply to: ✅Custom Fields Don't Display as Dynamic Data in Elementor #17837Anh Tran
KeymasterHi Matt, sorry for the delay. Can you send me a temporary admin account to take a closer look?
Anh Tran
KeymasterHi,
Thanks for your feedback. I've fixed it in the latest version of Custom Table & Term Meta. Please update. The new version for AIO is coming tomorrow.
Anh Tran
KeymasterHi Kiran,
I'm afraid there's no solution for it yet. Gutenberg seems to have bad support for live validation. Here are several issues opened on Gutenberg's Github repo:
https://github.com/WordPress/gutenberg/issues/5883
https://github.com/WordPress/gutenberg/issues/12692Anh Tran
KeymasterHi Brian,
Real quick, can’t wait for the 3rd hotel booking case study post
The technical part is done. We're finishing some details in the post and will publish it soon.
and also would be great to see a 2020 roadmap post like you did in years past
Yes, we're planning to do the same this month. Timeline is quite tight in the last couple of months :(.
Add the ability for multi select to the date field
The problem is that the jQueryUI datepicker library doesn't support selecting multiple dates. I suggest setting the date field cloneable, so you can add more dates if you want.
If you want to query them, then there are 2 options (FYI, cloneable fields save data in serialized format, which makes normal query useless):
- Using a plugin such as SearchWP/FacetWP (we have integrations for both)
- Using another custom field. The idea is that when saving post, you get the saved dates, and save it into another field (plain text in any format you want)
2) Combine / merge two date field outputs. If I had a “start date” and “end date” how would I merge the two so the output would look like, May 24 – 29, 2020 or May 31 – June 4, 2020? So that I could then query by date and display all dates for say “May”.
You can combine the way you want. I'd suggest using something like "2020-05-10|2020-06-01", e.g. separating dates by a special character (|, :, #, @) and format dates in a standard format (Y-m-d). That way you can query by values.
3) Make “group fields” available within the select advanced field options.
Another way to think about this issue is using the Conditional Logic extension. E.g. when you select a value in the select advanced field, then show the corresponding group.
I hope my answers give you some ideas to implement that. These are advanced (and rare) use cases, and need some creative thinking.
January 11, 2020 at 11:36 AM in reply to: ✅WP5.3 admin image edit link (pencil icon) opening in _BLANK instead of iframe #17813Anh Tran
KeymasterHey guys, thanks for your feedback. This bug is fixed here.
-
AuthorPosts