Forum Replies Created
-
AuthorPosts
-
SteveKeymaster@vincire– Whoops! My fault. The most important piece of data was missing.
Place this in the foreach loop:
echo '<img src="' . wp_get_attachment_url( $myupload->ID) . '"/>"';
SteveKeymasterFelt like this needed a tutorial. Let me know if this helps >
SteveKeymasterUnfortunately, this is tough to test since I don’t have access to the custom db. Is
define('WP_DEBUG', true)?
SteveKeymaster@vincire– Let me know if this helps: http://piklist.com/user-guide/tutorials/displaying-images-upload-field/
SteveKeymaster@tripflex– Piklist does everything the WordPress way, so you can use the standard WordPress hooks and filters like
updated_optionorupdate_option. Piklist also has a filterpiklist_pre_update_optionthat you can use as well.
SteveKeymaster@tripflex– Any settings section NOT associated with a tab automatically gets associated with the default tab. Try removing
Tab: Stylefrom the comment block of this file :
https://github.com/tripflex/user-activate-by-reset/blob/master/parts/settings/style.php
SteveKeymaster@kattagami– You can definitely use “required” on single fields. It still needs to be updated for grouped fields.
SteveKeymaster@tripflex– This is the current behavior for this field. Agreed it could use a little work.
SteveKeymasterYou should be fine. This seems to be throwing a warning for certain versions of mysql. As long as you have the post_relationships table you should be fine.
SteveKeymaster@kjprince– The HTML5
patternelement will validate a text box using a regular expression. For an international phone number, like +99(99)9999-9999, you would use this in the attributes array:
'pattern' => '[\+]\d{2}[\(]\d{2}[\)]\d{4}[\-]\d{4}'If the user doesn’t enter the proper format, they will receive the standard HTML5 error message: “Please match the requested format”. So you may want to include the format in the field description or placeholder.
You can also change the HTML5 message with a bit of javascript.
<script type="text/javascript"> var telField = document.getElementById("ID_OF_FIELD"); telField.setCustomValidity(telField.value + " That is not a properly formatted phone number! Please try again."); </script>Here’s an awesome article that explains it in more detail >
Let us know if this works for you.
SteveKeymaster@achowell– Here’s an article about pulling upload data from WordPress/Piklist. Multiple uploads is not as easy as it seems.
SteveKeymaster@vincire– Since Piklist does everything the WordPress way, you would display these fields the same way you would display any other custom field. Functions like get_post_custom or get_post_meta would work.
-
AuthorPosts