• Resolved wpcursus

    (@wpcursus)


    Is it possible to exclude the current post in a post list made with the ultimate shortcodes plugin?

    For example:
    If a shortcode like this is on a few posts I don’t want the post on which the list is visible to be shown on list. Something like exclude current post ID.

    [su_posts template=”templates/list-loop.php” posts_per_page=”5″ taxonomy=”post_tag” tax_term=”242″ orderby=”rand”]

    Is this possible? If yes, how?
    I think this would be a great feature in a future update>

    Thank you so much.

    • This topic was modified 5 years, 6 months ago by wpcursus.

    The page I need help with: [log in to see the link]

Viewing 13 replies - 1 through 13 (of 13 total)
  • Plugin Author Vova

    (@gn_themes)

    Hi @wpcursus,

    unfortunately, there’s no such option. Probably, it will be added someday.

    Is this still not allowed?

    Thread Starter wpcursus

    (@wpcursus)

    Dear Vladimir,

    Great plugin. Is it already possible?

    I made a nice review of your plugin:
    https://www.cursuswp.com/ultimate-shortcodes-wordpress-plugin

    Thank you so much!

    Plugin Author Vova

    (@gn_themes)

    Hi @wpcursus and @fastalker,

    I’m working on a new version of the Posts shortcode. The work will be done in a couple of months, I hope. The updated version will have this feature.

    Thread Starter wpcursus

    (@wpcursus)

    That’s great news. Can’t wait.

    Just another idea for the posts shortcode:
    – Option to show first image in the post as thumbnail instead of the featured image.
    – Option to make columns for the post list. Or maybe in the paid version of the plugin. Something like Advanced posts shortcode.

    Thank you so much!

    Thread Starter wpcursus

    (@wpcursus)

    Just thinking. Maybe it is possible it can be in the general settings that the current post is excluded by default.
    Thank you!

    Hi Vladimir, great plugin!

    I just wanted to add that having the possibility to exclude posts, tags, or taxonomies, in general, would be very useful. I am using the image carousel to display posts with certain tags at the end of my articles but I am unable to exclude the current post, making it very confusing for the users especially when seen on mobile – you can only see the featured image of the current post. It would be great if you could add the option to exclude to all shortcodes, not only to the posts.

    Thank you!

    Thread Starter wpcursus

    (@wpcursus)

    Hello Vladimir,

    When can we expect the next release with this feature? Thank you so much for your great work!

    Plugin Author Vova

    (@gn_themes)

    Hello @wpcursus,

    I don’t know exactly, sorry.

    Thread Starter wpcursus

    (@wpcursus)

    Ok thank you Vladimir for keeping us informed. Thank you!

    Thread Starter wpcursus

    (@wpcursus)

    Hi Vladimir,

    Just another idea:
    Option to add a fontawesome icon before the

    Listview now:
    Post 1 from category X
    Post 2 from category X
    Post 3 from category X

    Listview with icon:
    > Post 1 from category X
    > Post 2 from category X
    > Post 3 from category X

    Where ‘>’ can be a fontawesome icon of choice.

    I tried it with CSS for all the list loops, with something like this, but it didn’t work well:
    .su-posts-list-loop:before
    { font-size: 120%; font-family: FontAwesome; display: inline-block; vertical-align: bottom; color: #0CA1BF; padding-right: 11px; }
    .su-posts-list-loop:before { content: “\f040”;}
    Do you know the right CSS code to add a fontawesome in front of the list loop items?

    Extra idea:
    Maybe it’s an idea to add a class to the list loop, where in the class it’s possible to add a fontawesome icon

    Thank you so much!

    Thread Starter wpcursus

    (@wpcursus)

    I managed to do it partially.
    This CSS in the custom CSS Code of the plugin puts an icon in front of all the list loops:

    .su-posts-list-loop li:before { font-size: 110%; font-family: FontAwesome; display: inline-block; vertical-align: middle; color: #bbbbbb; padding-right: 11px; }
    .su-posts-list-loop li:before { content: “\f0a9″;}

    ====
    So far so good, but:
    HOW TO GET A DIFFERENT ICON IF I ADD A CLASS?
    I added a class in the shortcode: class=”testclass”

    [su_posts template=”templates/list-loop.php” posts_per_page=”3″ taxonomy=”post_tag” tax_term=”6″ order=”desc” orderby=”rand” class=”testclass”]

    Added this in the CSS but doesnt seem to work:
    .testclass:before { content: “\f275” !important;}

    What is the CSS code to change the icon or other custom settings for this class?

    Thank you so much!

    Just adding a +1 on this feature request.

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Exclude current post in list’ is closed to new replies.