3

You need to use the equivalent functions that return their value. Those are get_the_permalink() and get_the_title(). Most WordPress template functions that begin with the_ and echo their values have equivalent functions that return their values that begin with get_the_,


Only top voted, non community-wiki answers of a minimum length are eligible