Forum Replies Created
-
AuthorPosts
-
Anh Tran
KeymasterHi aaron,
The problem here relates to the scope of the conditions. When a condition is put on a field that inside a cloneable group, the plugin sets the scope = the group. So it searches for elements inside the group only.
In this case, the scope of the condition for the field "Column Image" is the group. And the plugin can't search outside it.
Anh Tran
KeymasterHi Calpaq,
The problem is the jQuery selector
$("input[name$='fill-time\]'], input[name$='peak-pressure\]']" ). It's static, while cloning creates new elements.To fix that, you need to listen to a higher element, such as
body, like this:$( 'body' ).on("focusout", "input[name$='fill-time\]'], input[name$='peak-pressure\]']", function (){} );Anh Tran
KeymasterHi Brian,
Is there something I can add to phpmyadmin so that on import of the csv file it also creates the needed info for each in the wp_post table?
Creating a new post in the wp_posts table requires coding. So, I think this can be done with custom code only. Take a look at this tutorial on how to process a CSV file with PHP.
Is there a hook that I can add to functions.php to tell my field to output the full url path and not the ID.
File and image fields save attachment IDs in the database instead of URL. To get file URL, you can use wp_get_attachment_url function.
May 13, 2019 at 9:26 AM in reply to: ✅metabox.io media-grid.min.js not loading on frontend form #14518Anh Tran
KeymasterThanks for letting me know. Let me check it.
Anh Tran
KeymasterThanks for letting me know. Let me check it.
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.
-
AuthorPosts