Site logo

Archived topic

Block Element – Content Template Issue

13 replies · Started by Wara on October 22, 2021

Viewing posts 1–14 of 14

I am basically trying to do https://docs.generatepress.com/article/block-element-content-template/ this for a page, so that posts from a certain category appear in the set template. However, the template is not showing on the particular page I have selected, although the content template shows as an active element on the edit page.

Is there a backend issue or am I missing something?

Hi there,

can you share a link to the page where it should be displayed ?

Hi there,

the page you linked to is a Static page.
Block Element - Content Templates overwrite the content template, they don't create query loops or create the grids to output content on static pages.

You will need to set the elements display rules to a Category Archive.

Hi David, thanks for your reply. Exactly where do I go to set the elements display rules to a Category Archive?

Hi Wara,

Hi David, thanks for your reply. Exactly where do I go to set the elements display rules to a Category Archive?

On the Block Element you're working on, you should see a "Display" tab as shown here - https://share.getcloudapp.com/Qwu27pNN

You should see a "Location" area with dropdowns, the dropdowns let you choose the page, post or taxonomy you want to apply the Content template on. :D

Hi Elvin, thanks, that was what I did and it seems to be working.

Is there a plugin you recommend that works well with GP for me to edit the layout of the archives page (add paragraphs, limit posts, add headings etc)?

Is there a plugin you recommend that works well with GP for me to edit the layout of the archives page (add paragraphs, limit posts, add headings etc)?

I believe page builder plugins will let you do this but if you only plan to do simple things then Block Element - Content Template should be enough. :D

Block Element - Content template allows you to edit the layout of the archive page (which I believe you already did). You can add more headings and paragraphs in it if you wish to do so.

As for the post limiting, you can do it with pre_get_posts filter - https://developer.wordpress.org/reference/hooks/pre_get_posts/

I wasn't able to see it as the site is in maintenance mode. Can you temporarily disable it so we can check?

sorry, deactivated.

I even included an excerpt for the first article and it shows, but the buttons I am not sure where the settings are. Under "customisation" shouldn't it apply to all posts on the page?

Try this instead.
Edit the Content Template, select the Dynamic Content Block (excerpt) and disable the Read More option.
Then below the Excerpt add a GB Button Block, add your Label ie. Read More, set the URL to # then set the Dynamic Link option to Single Post.

This archived topic is closed to new replies.