Nonlinear fractional partial differential equations have been solved with the help of the extended trial equation method. Based on the fractional derivative in the sense of modified Riemann-Liouville derivative and traveling wave transformation, the fractional partial differential equation can be turned into the nonlinear nonfractional ordinary differential equation. For illustrating the reliability of this approach, we apply it to the generalized third order fractional KdV equation and the fractional. Kappa (n, n) equation according to the complete discrimination system for polynomial method. As a result, some new exact solutions to these nonlinear problems are successfully constructed such as elliptic integral function solutions, Jacobi elliptic function solutions, and soliton solutions.