Versatile manipulation of nano- and microobjects underlies the optomechanics and a variety of its applications in biology, medicine, and lab-on-a-chip platforms. For flexible tailoring optical forces, as well as for extraordinary optomechanical effects, additional degrees of freedom should be introduced into the system. Here, we demonstrate that photonic crystals are a flexible platform for optical manipulation due to both Bloch surface waves (BSWs) and the complex character of the reflection coefficient paving a way for controlled optomechanical interactions. We demonstrate enhanced pulling and pushing transversal optical forces acting on a single dipolar bead above a one-dimensional photonic crystal due to directional excitation of BSW. Our results demonstrate angle or wavelength assisted switching between BSW-induced optical pulling and pushing forces. Easy-to-fabricate for any desired spectral range photonic crystals are shown to be prospective for precise optical sorting of nanoparticles, which are difficult to sort with conventional optomechanical methods. Our approach opens opportunities for novel optical manipulation schemes and platforms, and enhanced light-matter interaction in optical trapping setups.