palasthotel / grid-wordpress

a reference implementation of grid for wordpress
5 stars 5 forks source link

Post Box: Placing of pages not possible #123

Closed greatestview closed 4 years ago

greatestview commented 4 years ago

Tested on Grid v1.8.0

You can choose pages via »Single Contents« autocomplete search field and place the post box in grid, but the object passed to the frondend is incomplete: $this->output and $this->publish are empty strings. That’s probably because the post box uses get_post for retrieving pages instead of get_pages: https://github.com/palasthotel/grid-wordpress/blob/master/core/classes/wordpress/grid_post_box.php#L41

Changing backend settings in Grid makes no difference as far as I can tell.

Could you have a look into this @EdwardBock? Thank you :)

EdwardBock commented 4 years ago

@greatestview I checked on this. get_post is not having any problems with post ids of pages. Have a look at https://doc.grid.ws . On the homepage we have to pages placed with post box. Working fine.

greatestview commented 4 years ago

That’s true, it had something to do with a custom post box override. Thank you!