We’re trying to find a way to have content blocks that link to pages, but in the same format as posts. While I realize you can filter blocks to show pages, this functionality doesn’t help us as we need to be able to set a custom title sometimes, and control which pages are featured.
I was considering creating a custom module to handle this, with a custom post type (or ACF fields for a hidden post category), but I see that the URL for the blocks get pulled from includes\wp_booster\td_module.php.
Can someone suggest the best possible solution for this? Is there a way we can add a custom block with the theme API to handle this?
Thanks!
Hi,
You could look for a plugin which assigns categories to pages and then use the theme blocks to display the pages included in those categories. An example would be – https://wordpress.org/plugins/add-category-to-pages/
Note that i didn’t do any test with this plugin, if it doesn’t work look for a similar plugin.
Thank you!
Thanks for the recommendation. I think I’ll find another option though as I don’t want to install another plugin and muddy up the site with categories for pages.
I’m going to look at customizing the block in the child theme instead to pull pages by an ACF field, or perhaps use a post category with and link the block using custom fields to an assigned URL.
What I really wish is that the theme had shortcodes or a display option to show text on top of images the same way you can do that with posts, but anyway – thanks for getting back to me.
Hi,
not really sure I got what you’re trying to achieve, but if what you want is for the blocks to show a selection of pages instead of a selection of posts, this might help you out. I did it for posts but should work for pages too. The only thing to it is not filtering, you just input the id’s of the pages and they’ll show in the blocks. If you change the selection of pages just a couple of times per week like I do, it’s great. If you constantly need to change the pages that show in the blocks then you might need another solution.
This works on widgets too btw 🙂
