Site logo

Archived topic

Elements and WP Show Posts Setting

12 replies · Started by Satyadeo on October 28, 2021

Viewing posts 1–13 of 13

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.

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!

This archived topic is closed to new replies.