Forum Replies Created

Viewing 15 posts - 856 through 870 (of 2,964 total)
  • Author
    Posts
  • in reply to: Add_more doesn't save in settings page #6447
    Steve
    Keymaster

    @mariusnicula– There are two issues here:

    1) You are using the setting piklist_settings. You probably want to register your own setting.
    2) The scope is being set to post_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 to scope.

    This tutorial should help.

    in reply to: Order of Help Tabs #6446
    Steve
    Keymaster

    @michaellautman– Help tabs currently do not allow for ordering. This is something we will put on our feature request list.

    in reply to: Upgrading from 0.9.4.30 to 0.9.9.8 #6440
    Steve
    Keymaster

    @jasc– This doesn’t make sense. Can you zip up your code and email to [email protected] so we can take a look?

    in reply to: Upgrading from 0.9.4.30 to 0.9.9.8 #6438
    Steve
    Keymaster

    Yes… 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.

    in reply to: Upgrading from 0.9.4.30 to 0.9.9.8 #6436
    Steve
    Keymaster

    @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.

    in reply to: Header and footer information #6417
    Steve
    Keymaster

    @mariusnicula– You can absolutely do this with Piklist! Check out this tutorial on creating a Settings Page.

    in reply to: Upload file and output a link #6410
    Steve
    Keymaster

    Try this (untested):

    $metadata = wp_get_attachment_metadata($post->ID);
    $file = $metadata['file'];
    $url = site_url() . $file;
    
    echo '< img src="' . $url . '" />';
    
    in reply to: Upload file and output a link #6407
    Steve
    Keymaster

    @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.

    in reply to: Meta box does not update when post is Published #6403
    Steve
    Keymaster

    If 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.

    in reply to: Meta box does not update when post is Published #6400
    Steve
    Keymaster

    Change 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'
    			)
    		)
    	));
    
    in reply to: Meta box does not update when post is Published #6393
    Steve
    Keymaster

    preview_url is a repeater field (add_more). Do you want to have multiple files per post?

    in reply to: Meta box does not update when post is Published #6391
    Steve
    Keymaster

    Do you need to convert old data, in those fields, or not worry about it?

    in reply to: Meta box does not update when post is Published #6389
    Steve
    Keymaster

    This is happening because preview_url is a GROUP field, and everything is saving WITHIN a group. Make these individual fields and everything should work fine.

    in reply to: Meta box does not update when post is Published #6385
    Steve
    Keymaster

    Also, try removing your custom JS and see if that fixes it.

    in reply to: Meta box does not update when post is Published #6384
    Steve
    Keymaster

    So, 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?

Viewing 15 posts - 856 through 870 (of 2,964 total)