Archived topic
WP Show Posts in Sidebar not working
10 replies · Started by Rachel on August 20, 2021
Hi there,
I use GP Premium, GB Free and WP Show Posts on WP 5.6.4. Recently the WP Show Posts widget in the sidebar has stopped showing correctly - all others on pages are showing fine, but the sidebar one isn't. You can see an example in the link provided.
Are you able to assist in identifying the issue? I can't work out what is the problem.
On the same point, is there a way to display posts in the sidebar using GenerateBlocks or GP Elements - I noticed the WP Show Posts plugin hasn't been updated in a year, so wondering if I should be replacing it..
Thanks,
Rachel
As a follow on, I recently changed my site so that images are now served on an external CDN - which I believe may be the issue as WP Show Posts need the images to be on the server? Is there a way to resolve this issue or is there is a way to build these with Elements / GB instead of the plugin?
Thanks
Hi there,
Have you resolved this?
Looks like it's working for me:
https://www.screencast.com/t/xWZKhLyXk9x
hi Leo,
I resolved it temporarily by removing the image width and height from the WP Show Post List.
However, I would prefer to specify the dimensions. Is there a way to specify an image width and height just for the sidebar?
I have a code snippet to create new image sizes for my archive pages, but I don't know if there is a way to create an extra image size in the snippet and apply that image size to the sidebar / WP SHow post list?
Thanks,
Rachel
Hi Rachel,
You may want to use WPSP 1.2.0 alpha for this.
https://wpshowposts.com/wp-show-posts-1-2-0/
1.2.0 changed how images are resized. With this version, you should see this field - https://share.getcloudapp.com/YEuOyqBo - here, you can use your registered image size.
Hi there,
Is the WPSP 1.2.0 Alpha version stable to use on production sites? Are there known issues?
Thanks,
Rachel
While it's not exactly recommended for live sites, it's stable enough to function.
The next best alternative to this is by manually filtering the wpsp_default_image_size but the issue here is, you can't specifically target the WPSP list on the sidebar.
You may have to edit the plugin manually so the apply_filter(''wpsp_default_image_size'...) line takes in $settings['list_id']
I am reluctant to use this version of the plugin on my live site - but is this the only option, other than what I am doing - which is removing the image size from the WPSP list and allowing it to automatically resize to the space?
but is this the only option, other than what I am doing – which is removing the image size from the WPSP list and allowing it to automatically resize to the space?
If you want to use a more specific image size for a specific WPSP list, then yes. You either, modify the plugin or use the alpha version. :)
But letting it automatically resize to the space should be fine already. Assuming you've already generated the image file for the registered image size, it should automatically be picked from the srcset for the sidebar WPSP list. :)
Thanks for your help. I am generating the image size with the snippet so will work with that for now. Hopefully WPSP is updated soon or merged with GB so there is more flexibility with the image location and sizing when showing related posts.
Hopefully WPSP is updated soon or merged with GB so there is more flexibility with the image location and sizing when showing related posts.
Yeah that's the plan. Personally, I'm looking forward to the filter function. :D
No problem. Glad to be of any help. :D