Filter paper has tiny holes or pores that are large enough to let small molecules and dissolved ions through, but not the much larger particles of undissolved solid
The different dissolved substances in a mixture are attracted to the two phases in different proportions, causing them to move at different rates through the paper