Archived topic
Elements and WP Show Posts Setting
12 replies · Started by Satyadeo on October 28, 2021
I have created list in WP Show Posts Plugin for displaying post related to specific category on posts referring same category. the plugin is working fine and the posts are showing in after right side bar content, but these are not formatted as per right sidebar widgets. what should i do?
link for reference:- https://www.electricalvolt.com/2021/06/what-is-electric-power-definition-unit-types-formula-solved-problems/
Hi there,
How are you adding the WPSP list?
If you add it as a sidebar widget then it should be formatted like the other widgets.
there is no option to select wpsp list as sidebar widget
You can use a shortcode.
i have created shortcode of wpsp list and inserted in the Elements>hooks and inserted in before right sidebar content but its formatting is not same as other sidebar widgets
Hi there,
Are you referring the gap between each WP show posts titles is different from the Recent posts widget?
If so, try this CSS:
.wp-show-posts:not(.wp-show-posts-columns) .wp-show-posts-single:not(:last-child) {
margin-bottom: 9px;
}
Other than that, I don't see other differences. Let me know if I miss anything.
https://drive.google.com/file/d/1dqqC-Y1CnDAKguJkwq19Syrknk1Aar1x/view?usp=sharing
please find attached link and see area marked in the red border.
i am talking about this area, as it is not getting formatted as widget area
It's not being added as a widget.
Can you go to the widget editor, add a shortcode block to the sidebar widget area, then add the WP show posts shortcode inside it:
https://www.screencast.com/t/yRgqML90odv0
Let me know if this helps :)
i want to do this by elemmnts- hooks so that "wp show post" plugin display posts on same category post page .
if i use short code in the widget editor then it will display on all pages.
Hi there,
in your hook you will need to add some HTML around the shortcode:
<aside id="custom-wpsp-sidebar" class="widget inner-padding">
<h2 class="widget-title">Add your Tittle Here</h2>
ADD YOUR SHORTCODE HERE
</aside>
thanks david it worked fine
Glad to hear that!