Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Route overwrites the_content() #10

Open
alloyking opened this issue Apr 15, 2014 · 0 comments
Open

Route overwrites the_content() #10

alloyking opened this issue Apr 15, 2014 · 0 comments

Comments

@alloyking
Copy link

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);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant