In recent days, the analysis of peristalsis is playing an important role in nanobiotechnology due to the transmission of a wave along the channel/tube parapets containing fluid. This is also useful to transport the sanitary and some corrosive industrial fluids. In view of this, the peristalsis has become an essential research topic in both medicine and engineering. The object of this paper is to investigate the combined effects of Joule heating and the velocity slip on the peristaltic flow of magnetohydrodynamic nanofluid in an aligned non-uniform channel with a porous medium. The analytical solution is attained for the velocity field. Moreover, the shooting method is employed for obtaining numerical solutions of energy and concentration. Simultaneous solutions are executed for the inclined and horizontal flow geometries and discussed through graphs and tabular results for various values of significant parameters. Trapping phenomena are analyzed for different physical parameters and noticed a significant effect on trapping phenomena. A significant deviation is found in concentration and thermal fields in horizontal and inclined channels. Further, the present results are validated with the existing literature for some special cases. © 2019 by American Scientific Publishers.