By Michael Zahariev on Friday, 24 June 2016
Likes 0
Views 0.9K
Votes 0
Hi guys, is there a way to filter posts by post type?
Hey Michael,

It's merely just running a different sql query with a where clause that searches for the column "post_type" . This is how I think it should be done,

1. Append a custom query string to the page
2. Detect this new custom query string
3. If it contains the necessary query for post types,
4. Run a query to fetch posts where the column post_type matches your query.
·
Saturday, 25 June 2016 03:54
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Michael,
Unfortunately, it is currently impossible to filter posts by post type. Perhaps you can add a feature request regarding this at our feature request page: http://stackideas.com/voices/easydiscuss
If more people vote on this, the more we will consider implementing it.
·
Friday, 24 June 2016 17:58
·
0 Likes
·
0 Votes
·
0 Comments
·
Ok it's cool, i'll try and build it in, do you have any suggestions as to where i should hook in and try to add code to filter by post types. I saw how you guys did it with tags and categories, so i want to do the same.
·
Friday, 24 June 2016 19:34
·
0 Likes
·
0 Votes
·
0 Comments
·
Great thanks mark.
·
Saturday, 25 June 2016 16:01
·
0 Likes
·
0 Votes
·
0 Comments
·
You are most welcome Michael
·
Saturday, 25 June 2016 18:43
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post