Forum Replies Created
-
AuthorPosts
-
SteveKeymaster@mariusnicula– There are two issues here:
1) You are using the setting
piklist_settings. You probably want to register your own setting.
2) Thescopeis being set topost_meta, which is telling Piklist to save your data to a post… but since this is a settings page, nothing is being saved. So remove all references toscope.
SteveKeymaster@michaellautman– Help tabs currently do not allow for ordering. This is something we will put on our feature request list.
SteveKeymaster@jasc– This doesn’t make sense. Can you zip up your code and email to [email protected] so we can take a look?
SteveKeymasterYes… that was the other big change. 😉 Sorry, I forgot to mention it.
The repeaters are now in a beautiful array that’s easy to loop over. In most cases you are pulling the data and your code ends in a [0]. Most code is fixed just by removing that.
SteveKeymaster@jasc– One of the big changes in this upgrade is Workflow tabs. The good news is that they work much better now and are consistent with the way everything else is done with Piklist. The bad news is that your need to rewrite some of your code. More good news is that it’s pretty easy to do.
Here’s a tutorial to walk you through it.Hope that helps.
SteveKeymaster@mariusnicula– You can absolutely do this with Piklist! Check out this tutorial on creating a Settings Page.
SteveKeymasterTry this (untested):
$metadata = wp_get_attachment_metadata($post->ID); $file = $metadata['file']; $url = site_url() . $file; echo '< img src="' . $url . '" />';
SteveKeymaster@bradrh– Welcome to the Piklist community!
I think you’re having issues because of the way WordPress handles file uploads. WordPress creates an “attachment” (a type of Post), for each file uploaded.
Try this tutorial. It might help.
SteveKeymasterIf it added another post meta field please check your form to see if you have two fields saving data to the same key. That would cause errors.
SteveKeymasterChange them to this. You may have to play with the conditions, or you can remove them:
piklist('field', array( 'type' => 'select' ,'field' => 'preview_media_type' ,'label' => __('Format','musik') ,'columns' => 2 ,'choices' => array( 'mp3' => 'mp3' ,'m4a' => 'mp4' ,'m4v' => 'm4v' ,'oga' => 'ogg' ,'webma' => 'webm' ) ,'conditions' => array( array( 'field' => 'preview_type' ,'value' => 'remote' ), array( 'field' => 'music_type' ,'value' => 'single' ) ) )); piklist('field', array( 'type' => 'text' ,'field' => 'preview_media_url' ,'label' => __('URL','musik') ,'columns' => 10 ,'conditions' => array( array( 'field' => 'preview_type' ,'value' => 'remote' ), array( 'field' => 'music_type' ,'value' => 'single' ) ) ));
SteveKeymasterpreview_url is a repeater field (add_more). Do you want to have multiple files per post?
SteveKeymasterDo you need to convert old data, in those fields, or not worry about it?
SteveKeymasterThis is happening because
preview_urlis a GROUP field, and everything is saving WITHIN a group. Make these individual fields and everything should work fine.
SteveKeymasterAlso, try removing your custom JS and see if that fixes it.
SteveKeymasterSo, just to be clear:
-When FeedWP automatically saves it to the db, it’s just the FILE.
-When you press save in the post, “audio/mpeg” gets appended to the file.Is that correct?
-
AuthorPosts