• Resolved shirtguy72

    (@shirtguy72)


    Maybe I’m just tired? I have tried reading all the doc’s…My theme is only allowing the shortcode, which is fine, I must say, the shortcode in a widget after content works and looks wonderful, but I want to use the shortcode to exclude certain post ID’s … Is this possible?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Christoph

    (@camthor)

    Good morning, I hope you had a good sleep! ??

    The button shortcode can receive additional parameters through “params”. The old format (…=>…) stopped working in the widgets, so I had to change it.

    In order to exclude posts, the following should work: (using exclude with post IDs)

    [redirect_to_post_button redirect_to="latest" params="exclude=1,2,3"]

    Thread Starter shirtguy72

    (@shirtguy72)

    Good morning, could have been longer, thanks! Firstly want to thank you for your time in helping! I have updated the plugin, pasted an exact copy (post numbers differ) of your shortcode suggestion, added rule to Cloudflare, changed cache settings on Cloudflare, un-ticked Remove query strings from static resources in Autoptimize and have tried every possible combination of said settings. I can’t get her to work. The basic shortcode still works fine but adding the params only redirects to the same post over and over.

    Plugin Author Christoph

    (@camthor)

    That shortcode is supposed to redirect to the most recent post (excluding those IDs that you added). What exactly do you want to achieve? If you want a random post, you need

    [redirect_to_post_button redirect_to="random" params="exclude=1,2,3"]

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Shortcode excluding selected post id’s?’ is closed to new replies.