- This topic has 8 replies, 3 voices, and was last updated 5 years, 7 months ago by Tom.
-
AuthorPosts
-
August 26, 2018 at 2:13 am #660178Sam
Hi GP team,
Got a question about Custom Sidebars for specific posts.
1. I run a podcast that posts 1 episode per day (or more)
2. I need to display information in the sidebar that is specific to the episode, but changes everyday, such as “About today’s Guest, Resources etc”
3. A good reference is the sidebar found here:
https://www.smartpassiveincome.com/podcasts/most-important-business-conversations-dan-andrews/
4. My question is: is there anyway to create like a fixed formatted sidebar or widget area for my Podcast Category, so that every new episode, I can just “fill in the blanks” with the details?
5. I did a search and know that Leo recommends using Content Aware Sidebars, but the problem is that it does not offer this kind of standard template that I am looking for. I mean, just thinking about 3 x 365 Sidebars a year alone scares me. It would be less taxing on the site to have that standard template that I just mentioned.
There must be a solution that I don’t know of. Please help. Thanks!
August 26, 2018 at 9:14 am #660436TomLead DeveloperLead DeveloperHi there,
You’d likely need to use a solution like Advanced Custom Fields.
That would give you fields to fill in on each post.
Then you’d need to use code to insert a widget in the sidebar that dynamically pulls those fields using ACFs
get_field()
function.I think that’s probably the best solution.
August 27, 2018 at 3:20 am #660933SamHi Tom,
Thanks for your reply…
I’ve installed ACF and Content Aware Sidebars plugin but have no idea where to go now…haha.
Specific question: what code do I use etc.
This is the sidebar that i’ve created with Content Aware Sidebars..
https://drive.google.com/file/d/1FDe924He6NSKwKLXF1Ql7zKQPT93yVlc/view?usp=sharing
August 27, 2018 at 3:51 am #660965DavidStaffCustomer SupportAugust 28, 2018 at 10:10 pm #662917SamThanks David.
Took a look at the post and I was lost (i tried some codes and my site crashed, so I had to remove it), so i’m trying another approach, by listing down what fields I need and hopefully you can guide me along:
1. Sidebar on Podcast category posts (except Podcast Archive page)
2. Sidebar should have 3 widgets inside (Today’s guest, you’ll learn:, and Resources)
3. Looking to create specific widgets and then fill up the fields specifically for each blog post), but the format stays the same.
Looking forward to your reply, thanks!
August 28, 2018 at 10:10 pm #662918SamAugust 29, 2018 at 6:46 am #663243DavidStaffCustomer SupportHi there,
this is really out of scope for us, and it may be something you want to take up with ACF support.
Their are several support topics on their regarding widgets. There is also this premium plugin that does this:September 2, 2018 at 10:48 am #666801SamHi David,
so i’ve managed to create a Field label using ACF pro:
https://www.advancedcustomfields.com/resources/creating-a-field-group/
But i’m not sure how do i proceed with Tom’s advice of the get_field.
Specifically, how do I create a widget area on Generatepress child theme, so that I can proceed to display the field groups on Podcast category?
Thank you.
September 2, 2018 at 7:59 pm #666985TomLead DeveloperLead DeveloperWhat you’re trying to do is pretty complicated unfortunately. You’d need to create a widget and then input your custom fields into it using PHP.
You could try a plugin like this, but I’m not sure how good/well supported it is: https://acfwidgets.com/
It may be something you need to get coded – I can’t find any other plugins that do it.
-
AuthorPosts
- You must be logged in to reply to this topic.