-
AuthorPosts
-
August 8, 2022 at 6:17 pm #1361143
Hi there,
I started to revamp my blog page and tried to use the categories to be easier to be seen from my website visitors.
Safefood 360 blog
As you can see there are only the hero image and also the blogs are according to the date.
How could I add a bar in between the hero iamge and the articles, to add a list of tags(based on my wordpress categories setting)
and allow people to select the related blogs?Thanks!
August 9, 2022 at 2:56 am #1361176Hey Ghilbert12,
Thank you for the inquiry.
Are you trying to display a list of the categories below the hero image? You can create a custom shortcode that returns all categories in the site and display them on a selected location. You can also use the following plugin if you don’t want to create a custom shortcode.
// https://wordpress.org/plugins/list-category-posts/
In case you want to create a custom shortcode instead.
// https://codex.wordpress.org/Shortcode_API
// https://developer.wordpress.org/reference/functions/get_terms/
// https://developer.wordpress.org/reference/functions/get_categories/Best regards,
IsmaelAugust 9, 2022 at 10:56 am #1361226Thanks Ismael,
but it is not exactly what I wanted.
It is like the link below
https://www.fooddocs.com/postI don’t hate the current deisgn of food safety blog
but it would be better for the customer experience if people can select the tags but not jumping into another page.August 9, 2022 at 1:45 pm #1361250Hi,
Thank you for the update.
The masonry element has a sorting option which looks about the same as the fooddocs site but it can only filter posts that are already present in the page, all other related posts in the next pages will not be included. You can enable it in the masonry element’s Content > Sorting panel, look for e Sorting? settings and make sure that it is set to the first option.
Best regards,
IsmaelAugust 9, 2022 at 3:58 pm #1361261Thank you Ismael.
I think if the limition can only present in the same page, that may not be a good function to add on our exisitng blog.
But thanks for your explanation!August 10, 2022 at 12:52 am #1361294Hi,
Yes, the sorting option has that limitation and since it is the only sorting option that we have available for the masonry element, you may need to follow our first recommendation and create a custom shortcode based on the functions that we linked above. Unfortunately, this is beyond the scope of support and may require help from third party developers such as Codeable.
// https://kriesi.at/contact/customization
Best regards,
IsmaelAugust 10, 2022 at 11:38 am #1361330Understood, thank you Ismael, that really cleared my mind.
August 10, 2022 at 2:13 pm #1361355 -
AuthorPosts
- You must be logged in to reply to this topic.