-
AnthonyG
Hello,
I would like to create a personalized sidebar by category.
For example, if I’m on an article in the “Dog” category, then I’d like the sidebar to show 1/ the latest articles in the dog category 2/ the best articles in the dog category.
But, if I’m on an article in the “Cat” category, then I’d like the sidebar to show 1/ the latest articles in the Cat category 2/ the best articles in the Cat category.
Is this possible?
Thanks
-
David
Hi there,
the latest articles can be done with GenerateBlocks Pro Query Loop.
1. In your Sidebar add a Query Loop block. And design its layout.
2. in the Query loops block settings Parameters add:
i)Taxonomy
->Category
->Current Post Terms
ii)Exclude Posts
->Exclude Current Post
And thats it – the loop will now show posts that match the current post category terms and exclude the current post.
The Best Articles is a different matter…. what would make an article a best article ?
-
AnthonyG
i have a problem. now, the title doesn’t appear
-
David
Where can i see this ?
-
AnthonyG
here for example (on all posts) :
-
Can you use a GB headline block instead of the WP title block?
You can enable the dynamic data option for headline block and set it to title.
Let me know ๐
-
AnthonyG
Perfect, thank you ๐
-
You are welcome ย ๐
- You must be logged in to reply to this topic.