1. Home
  2. Docs
  3. WP Filter Posts
  4. User Guide
  5. Add New Filter

Add New Filter

To add a new filter, please click on the “Add New Filter” link in the menu.

add new filter menu

Now you can see the filter options.

add new filter

  1. Name – This is the name of the filter. You can use any name here.
  2. Category – You can select the category of the posts here. To select multiple categories, please use the “Ctrl” button. (Ctrl+A won’t work here. Simultaneously  use Ctrl+Click the options for selection.)
  3. Show category posts from – We can select the posts from “any of the selected category” or “all selected categories”.
  4. Tag – You can select the tag of the posts here. To select multiple tags, please use the “Ctrl” button. (Ctrl+A won’t work here. Simultaneously  use Ctrl+Click the options for selection.)
  5. Show tag posts from –  We can select the posts from “any of the selected tags” or “all selected tags”.
  6. Author – You can select the author of the posts here. To select multiple authors, please use the “Ctrl” button. (Ctrl+A won’t work here. Simultaneously  use Ctrl+Click the options for selection.)
  7. Posts to be skipped – Here you can set the no. of posts to be skipped.
  8. Posts to be shown – This is the number of posts showed in the filter. If the value is “0”, it will show all the posts.
  9. Pagination – If you want to show the posts in different pages, please use this option.
  10. Pagination Limit – This is the number of posts in a page. If the value is “20”, it will show 20 posts in a page.
  11. Sort by – We can sort the posts by publish date or update date in ascending or descending order.
  12. Display Format – The posts displaying format can be set here. There are different parameters to show. These are given below.
    • {POST_TITLE} – This is the title of the post.
    • {PERMALINK} – This is the permalink url of the post
    • {POST_EXCERPT} – This is the excerpt of the post
    • {POST_CONTENT} – This is the content of the post
    • {BLOG_TITLE} – This is the title of your blog/site
    • {USER_NICENAME} – This is the nicename of the user
    • {POST_ID} – This is the ID of the post
    • {POST_TAGS} – This is the tag of the post
    • {POST_CATEGORY} – This is the category of the post
    • {POST_FEATURED_IMAGE} – This is the featured image in the post
    • {POST_PUBLISH_DATE} – This is the post publish date
    • {POST_UPDATE_DATE} – This is the post update date

Here we can use the html in the display format. If you want to display the post title with clickable link, please use the format <a href=”{PERMALINK}”>{POST_TITLE}</a>

Now save the filter and you will get a short code like [xyz_wpf_shortcode id=1]

Please use the shortcode in the place where you want to display the filtered posts.

A sample page with filtered posts is given below.

filter posts

Was this article helpful to you? Yes 2 No 3