LukeDesign Posted June 3 Posted June 3 I am building a blog post template that I will use for all my posts. I want to add a “Related Posts” summary block on the bottom using categories. I know how to add a summary block and select categories, but since I am building a template, I would like CSS that can pull up the categories from the current page automatically to display those related posts. Here is the template so far: https://www.lucasano.com/blog-content/template-blog-post Thanks!
creedon Posted June 6 Posted June 6 (edited) Quote I would like CSS that can pull up the categories from the current page automatically to display those related posts. CSS is for styling how things look. It can't do things like lookup information and create new data structures. For that you would need JavaScript, the business plan or above, and custom JavaScript. Assuming it could be done at all. I know of no code that currently does this. Edited June 7 by creedon Find my contributions useful? Please like, upvote, mark my answer as the best ( solution ), and see my profile. Thanks for your support! I am a Squarespace ( and other technological things ) consultant open for new projects.
Solution LukeDesign Posted June 7 Author Solution Posted June 7 15 hours ago, creedon said: CSS is for styling how things look. It can't do things like lookup information and create new data structures. For that you would need JavaScript, the business plan or above, and custom JavaScript. Assuming it could be done at all. I know of know code that currently does this. Thank you. I was able to find some Javascript that achieved what I was looking for. creedon 1
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment