Support » Theme: Bento » Using Block Editor with Portfolio

  • tylrprtr

    (@tylrprtr)


    Hi!

    I’ve been trying to weigh my options in regards to creating a portfolio using either posts or portfolio projects that are part of the expansion.

    As it stands: using posts allows me to use the new block editor in lieu of the packaged SiteOrigin PageBuilder but does not allow me to create a filter-able masonry grid display using page categories.

    Using portfolio projects allows me to have a masonry grid with selectable project types to filter the grid. However, it appears that projects does not allow me to use the new block editor and instead forces me to use page builder to have any kind of a grid based page layout on the individual project page, see below. I assume this is what the classic editor previously looked like? I’m relatively new to WordPress.

    https://i.imgur.com/O0AIuyq.png

    Is there a way to either: enable full block editor support on portfolio projects or enable pages to be filtered by their categories? While I think the SiteOrigin PageBuilder will be fine, I did want to try out the various features and plugins that can tie in to the new block editor.

    Thanks!

Viewing 7 replies - 1 through 7 (of 7 total)
  • I’ve seemingly added support by adding

    ‘show_in_rest’ => true,
    ‘supports’ => array(‘editor’)

    to both the register_post_type and register_taxonomy argument arrays found in ep-functions.php. Not sure if this is the correct fix, I would be lying if I said I knew anything about PHP.

    Edit: Nevermind, it’s throwing an error when I go to preview or publish the site. back to the drawing board.

    • This reply was modified 2 months, 4 weeks ago by tylrprtr.
    Theme Author satoristudio

    (@satoristudio)

    Hello @tylrprtr, thanks for choosing Bento! You’re on the right track – in order to add Gutenberg support for the portfolio post type, one needs to add the 'show_in_rest' => true, item to the $args array in the bento_ep_register_portfolio() function inside the /bento-expansion-pack/includes/ep-functions.php plugin file.

    In order to avoid doing that by hand, though, you can click on the “Check for updates” link in the plugin’s row in the “Plugins” section of your WP admin – I’ve now pushed an update for the Bento Expansion Pack, and version 2.1.1 adds Gutenberg support to projects automatically.

    A big “thank you” for pointing this out!

    @satoristudio thank you for the incredibly quick turn around on this! I’ll test it out today and if I notice any other bugs I will be sure to let you know.

    @satoristudio – I think I found a bug: The section for selecting the project type tags does not appear when using the block editor.

    Theme Author satoristudio

    (@satoristudio)

    Is there a live page on which I could see the issue?

    @satoristudio Here’s a screenshot of what I’m referencing:

    https://i.imgur.com/5phsXOg.png Notice on the righthand options panel there is no option for setting the custom project type.

    Here’s a link to the live page if it helps: http://www.tylrprtr.com/project/test-project/

    Theme Author satoristudio

    (@satoristudio)

    Shoot, you’re right, apparently the respective register_taxonomy() function also needs the same parameter enabled. I’ve updated the Expansion Pack once more (ver 2.1.2).

Viewing 7 replies - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.