Digital experiences for all disciplines
Forum Replies Created
-
Posted in: We hit Power Elite.
-
November 12, 2015 at 4:36 pm in reply to: widget recent posts does not show the featured image #228292
I see! That field (featured image) had eluded me entirely, as we use the thumbnail image field!
Thank you!
November 12, 2015 at 4:07 pm in reply to: widget recent posts does not show the featured image #228278This reply has been marked as private.November 12, 2015 at 3:56 pm in reply to: widget recent posts does not show the featured image #228272I have made a very basic testsite with the version (3.16) of Dante we are running as theme (I hope this is okay).
No plugins are installed and the ‘sf recent posts’ widget shows blank images!See my test at:
http://bankopdelingnu.dk/wptest/October 20, 2015 at 8:24 pm in reply to: widget recent posts does not show the featured image #222034Hi,
it is displayed under the content aware sidebars plugin.
https://wordpress.org/plugins/content-aware-sidebars/
Could this be the cause?How should i give a WP login? I can’t write it here for obvious reasons, and what priviledges would be needed?
/Hans
October 19, 2015 at 10:20 pm in reply to: widget recent posts does not show the featured image #221742On the right sidebar the widget shows the default images
http://schillerinstitut.dk/si/category/alle-kategorier/strategi/ny-renaessance/From the widget-posts.php:
$thumb_image = get_post_thumbnail_id();
$thumb_img_url = wp_get_attachment_url( $thumb_image, ‘widget-image’ );
$image = sf_aq_resize( $thumb_img_url, 94, 75, true, false);
if $thumb_image is nul i think, the next two lines set $image to be the default image.October 19, 2015 at 5:29 pm in reply to: widget recent posts does not show the featured image #221694Well that is not from a widget, but from some other parts of the code.
I am referring specifically to the code here..
dante/swift-framework/widgets/widget-posts.phpIt is activated by going to the widget section for example adding a ‘recent posts’ widget in a sidebar through..
wp-admin/widgets.php/Hans
I see.. that is a good page for reference. Overlooked i guess. 🙂
Hans
Yes, that is exactly what it was. 🙂
Not so easy to figure out what a ‘category slug’ is…
Seems like a bit ambiguous name to me, but my changes works now.
Thanks.Hans
Hi,
I am as of now using the ‘recent posts’ entity with only one category. I see that what i am doing does not really make sense in the case of selecting multiple categories.Anyway i now only need to get hold of the category Id from the selected category. Unfortunately $category_array[0] which coincides with $category does not contain the category ‘name’ field but something else that i am trying to find out how it can give me the category id, so that i can use get_category_link( id ) and i am done.
Hans
Hi,
i am managing my customization and it is going well. Not so difficult. I just miss one information now…is the $category variable in recent-posts.php a structure and is there somewhere i can find that structure?
If you can inform me on this it would be a help, otherwise i am about to find out on my own.
HansI tried to do the changes i mentioned first and it worked fine, only the link was not really correct.
Now I am just asking for an overall opinion on the SPBMap change i suggest.
I need this other param, but i am unsure because it makes changes towards the database and i don’t know how that works really yet.
Do you have any idea if it is dangerous to add to the params list in…
SPBMap::map( ‘recent_posts’, array(
..“params” => array(
..?
So after this line (line 219)..
$output .= “\n\t\t\t\t”.$items;
in the file i should put in my ‘more’ html in the same manner.And then i just need the variable for the link and to check the variable $item_count if it is not zero?
Thanks, that is what i needed. 🙂
Hi,
i am afraid that there is some options there, but not of use to me in this respect. I have 5 entries on this page..Default Show Page Heading
Default Page Heading Background
Default Sidebar Config
Default Left Sidebar
Default Right SidebarHans
-
Posted in: We hit Power Elite.