• Resolved bonnie333

    (@bonnie333)


    Hello Christoph,

    I am excited about your plugin, I already (successfully) created few Random Post buttons for my website I am building,

    but I am struggling with creating buttons for which I need to exclude “Post Format”, specifically “Post Format – Link” (the theme of my website offers Standard, Video, Audio, Gallery and Link Post Format options).
    I haven′t found the solution neither in the documentation nor in this forum (maybe I just missed it?), and I′m no professional in this field, so could you please tell me what exactly I need to add to the URL to exclude Link posts?

    Thank you kindly for your help, and for the plugin

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

    (@camthor)

    I did a quick search of possible queries for post_type but couldn’t find any function to exclude one. The only workaround that I see is to list all included post types separated by commas, such as &post_type=post,video,audio.

    In a button, there should be something like params="post_type=post,video,audio"

    Does that help you?

    • This reply was modified 8 months, 2 weeks ago by Christoph. Reason: added info for button
    Thread Starter bonnie333

    (@bonnie333)

    Thank you so much for your fast support

    It seems logical. But unfortunately it doesn′t work : (

    Later, I tagged all the Link posts with one tag to use a filter that excludes that tag, just like it is done with a Category (&cat=-“IDnumber”), &tag_id=-“IDnumber”, but it didn′t work either, and then I realized there is no filter for excluding the Tag in “Examples”, only filter that inlcudes the tag:

    Additional filter: tag

    Redirect to the latest post with the tag?ID?20.

    www.example.com/?redirect_to=latest&tag_id=20

    So, to exclude a Tag is also not possible?

    • This reply was modified 8 months, 2 weeks ago by bonnie333.
    Plugin Author Christoph

    (@camthor)

    You tried tag__not_in=20?

    If you don’t see the expected posts, you get more information by adding &rutpdebug. See here.

    Thread Starter bonnie333

    (@bonnie333)

    This works perfectly!

    Christoph, thank you very much for your help & for this very useful plugin

    Best wishes ~

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Post Format filtering’ is closed to new replies.