Display pages dynamically with blocks and grids

Posted in: Newspaper
Post count: 5

I would like to display pages dynamically with blocks and grids. I have figured out to filter them by setting Post type as page. The problem is I will have pages which need to be loaded dynamically with blocks and grids and ones which are static pages. I guess there will be a lot of those static pages, how can I exclude them without typing IDs of each and every one of them?

  • This topic was modified 7 years by shandule.
Post count: 18283

Hello !

Unfortunatelly the only way to filter them in blocks is only what you find in the Filters tab of the blocks.

We are sorry for the inconvenience !

Thank you !

Post count: 5

Ok thank you for your answer.
I’ve came up with possible workaround.
I have registered a Custom Post Type and I can use filter in block by entering this newly created Custom Post Type.
But I have a different problem now, template for CPT wont kick in, it falls back to single.php
Does your theme somehow overides hierarchy in WP?

Post count: 18283

Hello !

CPT uses only single.php template. Unfortunately it does not work on anything else.

Thank you !

Post count: 5

Is there any workaround on that, I keep bumping into walls here.
I dont want to dig through code.
If I manage to make this work it will be great.

Post count: 18283

Hello !

There is no easy workaround. It will require some serious coding to pull that off. Unfortunately custom work cannot be done by use due to our support policy: https://tagdiv.com/?s=support

You could try find a freelancer and see if he’ll be able to help you !

Thank you !

Post count: 5

I know, I’m not asking for custom work from you, just trying to figure out how everything works. I’ll rewrite by myself.

Viewing 7 posts - 1 through 7 (of 7 total)
The forum ‘Newspaper’ is closed to new topics and replies.