- This topic has 13 replies, 3 voices, and was last updated 2 years, 5 months ago by David.
-
AuthorPosts
-
October 22, 2021 at 1:35 am #1971567Wara
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?
October 22, 2021 at 9:03 am #1972061DavidStaffCustomer SupportHi there,
can you share a link to the page where it should be displayed ?
October 22, 2021 at 8:49 pm #1972415WaraHi David, here is the link – http://remarkablehomes.co/guides-for-buying-residential-property-singapore/
I toggled with the “customize” function, and under homepage settings, there is a “posts” page that allows you to choose just one page?? Is that how the content template can work? Can it work on multiple pages?
October 23, 2021 at 6:07 am #1972588DavidStaffCustomer SupportHi 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.
October 24, 2021 at 6:37 pm #1973990WaraHi David, thanks for your reply. Exactly where do I go to set the elements display rules to a Category Archive?
October 24, 2021 at 9:00 pm #1974041ElvinStaffCustomer SupportHi 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. 😀
October 25, 2021 at 12:09 am #1974106WaraHi 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)?
October 25, 2021 at 12:15 am #1974117ElvinStaffCustomer SupportIs 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. 😀
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/October 25, 2021 at 12:26 am #1974124WaraHi Elvin, I double checked the page, http://remarkablehomes.co/category/buyer-guides/, and I can’t quite understand why my “read more” button is appearing for 2 posts and not for 2 others?
October 25, 2021 at 12:30 am #1974130ElvinStaffCustomer SupportI wasn’t able to see it as the site is in maintenance mode. Can you temporarily disable it so we can check?
October 25, 2021 at 12:35 am #1974135Warasorry, deactivated.
October 25, 2021 at 1:22 am #1974177ElvinStaffCustomer SupportFor the post w/o any buttons, can you check their Excerpt field if it contains space in its metabox as explained here – https://docs.generatepress.com/article/excerpt-issues/#excerpt-not-showing
October 25, 2021 at 2:27 am #1974240WaraI 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?
October 25, 2021 at 4:47 am #1974325DavidStaffCustomer SupportTry 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. -
AuthorPosts
- You must be logged in to reply to this topic.