Skip to content

Route overwrites the_content() #10

@alloyking

Description

@alloyking

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions