WordPress.org

Ready to get started?Download WordPress

Forums

Advanced Text Widget
Slug (3 posts)

  1. bmcd67
    Member
    Posted 1 year ago #

    I put in slug to filter posts but seeing all posts. Does there need to be any formatting when filtering?

    http://wordpress.org/extend/plugins/advanced-text-widget/

  2. Max Chirkov
    Member
    Plugin Author

    Posted 1 year ago #

    No formatting is necessary, unless you're entering multiple values, then simply separate them by comma (no space after it). Make sure slug is not in quotation marks and double check if the slug is correct - usually it's only the last part of the URL, not including sub-folders. For exampe: /blog/2012/11/06/my-test-post/ - so the slug would be my-test-post.

    The options "Single Post" is utilizing is_single() function - it should support slugs out of the box.

    P.S. I just double-checked on my own site and it worked as expected.

  3. bmcd67
    Member
    Posted 1 year ago #

    OK thanks. For categories does it need the category ID or slug?

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.