Forum Replies Created
-
AuthorPosts
-
Anh Tran
KeymasterThe
custom_htmlfield allows you to set a callback (a PHP function name), where you can use a PHP function to output anything. Please try it.Anh Tran
KeymasterHi Brian,
Once the table is created should I delete this code?
It's fine if you delete the code. If you keep the code, it will check for table existence before trying to create.
If your data set is large do you advise setting all your fields to VARCHAR(length) NOT NULL
Varchar is for a text that you don't know the length. It's usually used for fields like title, short description. If the field is large, I'd recommend using
TEXT.What's the best way to import xml or csv data into my newly created custom post type that uses the mb custom table?
I set the field ID to AUTO_INCREMENT. This allowed me to import my csv file and everything in the custom mb table imported correctly. But when I go to my custom post type in wp admin these listings do not show. This is driving me bananas.The ID column must map the ID of the posts in the WordPress's table. Otherwise, the plugin can't know which post that a row belongs to.
I think, you need to edit the ID column first. Then using phpMyAdmin to import.
Anh Tran
KeymasterHi Calpaq,
That sounds like a "copy" function. It's not supported at the moment :(.
Anh Tran
KeymasterHi Sergio,
You can add condition to the parameter, like this:
$can_add_new = current_user_can( 'manage_options' ); // then in the field settings, set 'add_new' => $can_add_new,Anh Tran
KeymasterHi Calpaq,
What do you mean "Save As"? Can you give a little more info about that?
Anh Tran
KeymasterHi Matthias,
Using get_posts is risky, since it auto applies
suppress_filters=true, which is used to filter the results (the extension changes the query by applying new WHERE, JOIN clauses). If you want to make it work like WP_Query, I think you need to set it tofalse.May 9, 2019 at 11:58 AM in reply to: ✅OSM Map with User Meta: Error: $address.autocomplete is not a function #14482Anh Tran
KeymasterThanks a lot for your feedback and help. Let's continue discussing this issue on your PR on Github.
Update: it's resolved here.
May 8, 2019 at 8:42 AM in reply to: Submit Button gets disabled after submit when errors are still there #14470Anh Tran
KeymasterHi Calpaq,
Thanks a lot for your feedback. I've just realized the problem yesterday. Your solution seems right. I'll test it and release a new version.
Anh Tran
KeymasterHi Michael,
It's not in the plugin yet. But you can show a description to users to let them know the limit, and use a plugin like Resize Image After Upload to auto resize the images if their dimensions exceed the max width/height.
Anh Tran
KeymasterHi Toomas,
At the moment, the URL of the tile server is fixed with OpenStreetMap. I've just re-check the code and found it's not very hard to add options for another tile server. Let me try and update you when it's done.
Anh Tran
KeymasterHi,
In the latest version, we decided to removed the
user_idattribute from the shortcode, to fix a security bug. With that, only the current user can edit his or her profile. Are you trying to let admins edit user profile?Anh Tran
KeymasterHi katev,
From the screenshot, I guess you haven't activated the MB Group extension, have you? This is what I have on my localhost with your code:
Anh Tran
KeymasterHi,
If you use the MB Custom Post Type extension, make sure you select the "Featured Image" from the "Support" meta box on the right.
If you don't use the extension, you need to use the add_post_type_support to add "thumbnail" support to the post type.
Anh Tran
KeymasterHi, you can remove the title field and other default fields with the remove_post_type_support function.
-
AuthorPosts