Posted: September 4, 2012 at 2:45 pm
|
I’m trying to display the featured image in the sidebar, along with the title and date of the event. The widget doesn’t support this by default. Is there some custom code I can throw in my sidebar.php file to loop through and show the next X number of events with the featured image? |
You might be able to do this by editing the
Obviously tweaked to suit your theme. The only downside with this (which was brought up in another thread) is that you only have the full size image to work with, which isn’t great if you’re then resizing it to thumbnail size to display it in a widget. |
|
|
Hmmm… what about product updates? Won’t this get overridden when we update the plugin? I was hoping for more of a hook or something as we are developing this for a client who ultimately will be responsible for plugin updates. Out of curiosity… why don’t any of the images placed inside the editor section of an event get “attached” to the post like any other post? This would allow for people to get those attachments and work with whatever size they want, or use custom image sizes since the image gets crunched. |
|
Or, is there even a way to pull the ID of the featured image? This way we could use |
Sorry for not seeing this sooner. I’m digging though old forum topics today… To answer your questions:
Not if the widget.php you’ve modified is uploaded to
|
|
The support post ‘Featured Image in Widget’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.