Forum Replies Created
-
AuthorPosts
-
January 25, 2016 at 12:36 pm in reply to: I need help creating reusable content blocks and showing them on the frontend #5724
SteveKeymasterNice job!
SteveKeymaster@gabeshackle– Which styles are being effected? Our css was designed to target Piklist notices only.
SteveKeymasterThis is just the nature of a web page loading. If this was the front-end of the site, you would probably try a little javascript to show a loading icon. You may want to try this in the backend as well. Here’s a tutorial I found.
Let us know how this works for you.
SteveKeymaster
SteveKeymaster@rafi– Welcome to the Piklist community!
You can pass an HTML attribute to a field by including it in an attributes array:
'attributes' => array { 'required' => 'required' }
SteveKeymaster@stefanrinaldi– I believe your issue is different. The array structure is supposed to change. That’s the point of the update script. You can learn more about it here >
SteveKeymasterIf you output the $new_title to the screen, do you see the whole thing?
add_filter('piklist_empty_post_title', 'my_dog_title', 10, 2); function my_dog_title($data, $post_array) { // Grab the new title from the custom field. Replace my_custom_field with your own $new_title = $post_array['_post_meta']['geregistreerde_naam'][0]; print_r($new_title); // output die(); // Only filter on your custom post type. Replace my_custom_cpt with your own. return $post_array['post_type'] == 'dog' ? $new_title : $post_array['post_title']; }
SteveKeymaster@gabeshackle– Thanks for the quick turnaround! We’ll test and make sure nothing else it effected.
Piklist is so big and can do so much, that testing can be a beast 😉
SteveKeymaster@hartey11– Thanks for letting us know. We’ll look into PHP7
January 23, 2016 at 10:48 pm in reply to: Conditional fields not working when scope is different #5703
SteveKeymaster@jivedig– Glad you figured it out.
scopeis very important for front-end forms since Piklist can’t auto-detect it.Closing this ticket.
SteveKeymaster@jivedig– Welcome all ACF/CMB2 converts!
Seriously, welcome to the Piklist community. Currently, only the basic file upload field can be used on front-end forms. We have not brought the media uploader to the front yet.
We were able to verify the image validation bug you found. We’ll work on getting it fixed for the next version of Piklist.
SteveKeymaster@gabeshackle– This is awesome! Thank you so much for contributing.
Unfortunately, though this fixes add-more fields, it breaks another type of field. If you place an editor in a meta-box and try to drag-n-drop the meta-box, it won’t work.
SteveKeymasterGreat! Enjoy…
Closing ticket.
SteveKeymaster@gabeshackle– Welcome to the Piklist community!
The WordPress default custom fields meta-box interferes with Piklist fields. You need to unregister it. Use remove_post_type_support:
remove_post_type_support( 'page', 'custom-fields' );This will be fixed in the next version of Piklist.
SteveKeymaster@hartey11– W3 Total Caches page cache interferes with Piklist, so turning it off helps. The meta-box issue should be resolved in Piklist 0.9.9.x. Which version are you using?
-
AuthorPosts