jbrinley / WP-Router

Routes paths to callback functions in WordPress
108 stars 27 forks source link

Route overwrites the_content() #10

Open alloyking opened 10 years ago

alloyking commented 10 years ago

public function set_post_contents( $post ) { global $pages; $pages = array($this->contents); }

This function overwrites the global $pages to only include what is given in the route callback.

I fix this on my end (for the moment) just by doing this :
$pages = array($this->contents . $post->post_content);