Forum Replies Created
-
AuthorPosts
-
SteveKeymaster@sanderschat– Great job. Remember, Piklist does things the normal WordPress/PHP way. So getting the choices list would be the same if you were even generating a standard HTML form.
SteveKeymaster@jonian– Please verify all fields have different field names. If that isn’t the issue, please post your code so we can review.
SteveKeymaster@iwillhappy1314–Frontend forms are still under development, and will be as easy to create as backend forms.
SteveKeymasterMarcus–
Based on your recommendation here>
We added this:
self::$paths[$type] = $path; $path = str_replace(chr(92), '/', $path); self::$urls[$type] = plugins_url() . substr($path, strrpos($path, '/'));That doesn’t work?
SteveKeymasterDid you ever try this?
http://piklist.com/support/reply/reply-to-plugins-dir-renamed-wp_plugin_url-3/
SteveKeymasterMarcus– This is the only folder structure Piklist currently recognizes >
Let us know if you think we can improve it.
SteveKeymasterI believe this was fixed in a past version. Are you running the Beta 6? If not, please upgrade. If so, please send a screenshot.
SteveKeymasterThis is going to take a while. Lots of code here. One quick typo: The field “mae_p_pg_country” assigned to two fields. You probably want to change one to “mae_p_ch_country”
SteveKeymaster@cosmocanuck– You can add any attributes you want to a field, including onFocus or onBlur, just by including it in the Attributes array.
For example, let’s say you want to clear a field onFocus. Using the
text_class_smallfield from Piklist Demos:piklist('field', array( 'type' => 'text' ,'field' => 'text_class_small' ,'label' => 'Small' ,'description' => 'class="small-text"' ,'value' => 'Lorem' ,'attributes' => array( 'class' => 'small-text' ,'onfocus' => "if(this.value == 'Lorem') { this.value = ''; }" ) ,'on_post_status' => array( 'value' => 'lock' ) ));Also, this might help you. Some field plugins that other users have created >
I also updated our docs to help answer your question.
Let us know how it turns out.
SteveKeymasterGreat! That fix will be in the next version. Closing this ticket.
SteveKeymasterMarcus– Please provide us with your metabox code.
SteveKeymasterIf you need it in the next month or so, go with Posts2Posts. However, be aware that our approach will be different, and I don’t believe compatible with Posts2Posts.
SteveKeymasterIn class-piklist-cpt.php. Find the
sort_meta_boxes()function. Wrap everything within it in
if (post_type_exists($post_type))That should fix the issue and will be in the next release.
SteveKeymasterCurrently, this is not supported. But it’s a great idea and on our list for future features.
SteveKeymasterGlad that worked. Calculative values are not supported, but on our future feature list.
-
AuthorPosts