aldolat / posts-in-sidebar

Publish a list of posts in your sidebar
https://dev.aldolat.it/projects/posts-in-sidebar/
GNU General Public License v3.0
16 stars 8 forks source link

Image problem #10

Closed mirrera closed 10 years ago

mirrera commented 10 years ago

Hi this may be a bug. When you have an image in a post and you set the widget to show featured image it is showing both the post image and the featured image. Also if the post image has a caption, the widget shows the entire shortcode for the caption and all the attributes.

My workaround—until I hear back — is going to be keep the check box checked for having the featured image show, but un-setting the featured image in the post, and removing the caption

mirrera commented 10 years ago

Hi,

As my first work-around did not work I explored the options a little more and wanted to be more specific about what is going on. I love this plugin and you have thought of nearly everything so I hope you might want to know about this behavior.

Desire: Thumbnail, caption, text, live links.

Problem:

Both Thumbnail and Post Image are showing, plus in some cases short code caption tags, and attributes.

Text Settings and Outcomes:

Rich Content: Shows both images plus short code caption tags and attributes but has the desired live links

Full Content: Shows both images and caption (does not show short code tags) and has the desired live links

Simple Text: Shows just the thumbnail and text but live links are gone.

Workarounds with CSS to remove the large image:

With Rich Text: the following works except the caption short code still shows.

.pis-excerpt img { display:none } .pis-excerpt .pis-thumbnail-img{ display:block; float:left; margin-right:10px; margin-bottom:10px; }

With full Content: The following works li.pis-li p img{ display:none }

Ideal Solution: Caption code tags are never displayed and when you check display featured image the Post Image is not also displayed.

Maybe this will help someone else!

aldolat commented 10 years ago

Hi Mirrera, during the development of this plugin, I tried to make the users happy, listening to their requests of features. Initially the option for retrieving text was simply a pure text, without any extra, such as links for example. Then they asked if it were possible to have more options, like full text.

In this situation, it could be possible to have not-so-good outputs. It's not a bug. You have to choose the better output for you and, as you already have done and suggested, work with CSS to obtain the perfect result for you, if necessary.

Thanks for sharing your workaround.