Home › Forums › Support › Capital Theme: How to filter posts to be included in the Featured Case Studies
- This topic has 13 replies, 4 voices, and was last updated 7 months ago by David.
August 19, 2022 at 12:53 am #2317228Sinartus
This is probably a simple setting, but I just can’t locate it. I am working with the Capital Theme and I trying to figure out how to filter the posts to be included in the Featured Case Studies. I’ve looked into the Elements settings for Featured Case Studies and I don’t see any indication that it’s being controlled from there.
What I am trying to do is to create a category filter of the posts and to show it in each of the respective web page that will be dedicated to that particular category. I am thinking that I can do this through Elements, as in the case of the Featured Case Studies. Please let me know if I am wrong. Thanks!August 19, 2022 at 1:02 am #2317233Fernando Customer Support
Capital Theme has a Block Element called “Featured Case Studies”. In there, you’ll find a WordPress Query Loop Block.
What you can do is replace this block with a GenerateBlocks Query Loop Block instead. Through this, you can set a category parameter/filter.
Reference: https://generateblocks.com/creating-related-posts-with-query-loop-block/#:~:text=Example%203%20%E2%80%93%20Posts%20within%20a%20specific%20categoryAugust 19, 2022 at 1:33 am #2317256Sinartus
Hi Fernando. You have solved my problem, yet again! Thank you so much!August 19, 2022 at 1:41 am #2317266Fernando Customer Support
You’re welcome Sinartus!August 19, 2022 at 5:07 am #2317391Sinartus
I am trying to replicate the ability for the query loop (titled Our Latest Post) to not show the text excerpt on only the front page similar to the Capital template. I have replicated the query loop using GeneratePress (titled Hardware) but I am not able to find the setting that hides the text excerpt for the front page. Can you please be so kind as to take a look via the link and let me know if I am missing something here? Thanks.August 19, 2022 at 9:44 am #2317696YingStaffCustomer Support
We are not able to view the link you provided, can you publish the page and link us to that page again?August 19, 2022 at 9:49 am #2317702Sinartus
Hi Ying. Sorry, I gave the wrong link. I have copied the correct one. Thanks!August 19, 2022 at 11:48 am #2317795YingStaffCustomer Support
but I am not able to find the setting that hides the text excerpt for the front page.
Do you mean this section?
How did you build the section? It looks like static content.
Let me know!August 19, 2022 at 5:15 pm #2318002Sinartus
Hi Ying, not that’s not the section that I am referring to.
This is the one:
Notice how the top query loop (from Capital theme) has managed to hide the excerpt text. I am trying to replicate this on the lower section that I have built using GP’s query loop but I can’t seem to hide the excerpt text.
Thanks!August 20, 2022 at 10:52 am #2318538YingStaffCustomer Support
Oh I see what you mean, the template is using CSS to hide the expert in the latest post section.
The easy fix would be adding
post-blockclass to the container block which contains the hardware section.
https://wordpress.com/support/wordpress-editor/adding-additional-css-classes-to-blocks/August 25, 2022 at 5:43 am #2323426Sinartus
Where can I see the CSS on the latest post section? I looked under the Advanced Block under the Post Excerpt and I don’t see anything Additional CSS Classes section.August 25, 2022 at 8:38 am #2323720DavidStaffCustomer Support
edit the GB Query Loop Block.
Inside that query loop you have a core Excerpt block. Delete that,
Then in its place add a GB Button, you can set the text to Read more, and in its Dynamic Data settings set the Link Source to Single post.
Adding CSS: http://docs.generatepress.com/article/adding-css/August 25, 2022 at 6:25 pm #2324092Sinartus
Hi David and Ying. Thank you for the clarification. I appreciate it.August 26, 2022 at 3:28 am #2324382DavidStaffCustomer Support
Adding CSS: http://docs.generatepress.com/article/adding-css/
- You must be logged in to reply to this topic.