最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

custom taxonomy - Display Posts that fit a certain criteria on Category pages

programmeradmin0浏览0评论

I wish to display posts that fit a certain criteria on a category page. Something like a search filter applied, to several such category pages.

For example, to display all movies by Chris Pratt that grossed over 10 million dollars. Or All movies with Chris Pratt and Zoe Saldana, etc.

How / where would I have to look for a good tutorial on how to do the same?

Would it go into the realms of custom fields with custom taxonomies? Please advise if possible.

I wish to display posts that fit a certain criteria on a category page. Something like a search filter applied, to several such category pages.

For example, to display all movies by Chris Pratt that grossed over 10 million dollars. Or All movies with Chris Pratt and Zoe Saldana, etc.

How / where would I have to look for a good tutorial on how to do the same?

Would it go into the realms of custom fields with custom taxonomies? Please advise if possible.

Share Improve this question edited Dec 25, 2020 at 6:44 Jojo Mojo asked Dec 25, 2020 at 6:08 Jojo MojoJojo Mojo 12 bronze badges 2
  • 1 As you have some notion of what's involved, it would be best to try a few ideas and to post your code, so that others can help you improve it. – Q Studio Commented Dec 25, 2020 at 9:00
  • How are you storing that Chris Pratt was in the movie? As a category / taxonomy, or as an actor list in post meta, or something else? Ditto grossed $10m: is that a category, or are you storing the gross value in post meta, or something else? – Rup Commented Dec 25, 2020 at 17:41
Add a comment  | 

1 Answer 1

Reset to default 0

I creates a shortcode for the same. I need to display all the post of a particular category in a specific format. So added a function in php to add shortcode with input as 'category name' and show in the format I want. This link helped.

发布评论

评论列表(0)

  1. 暂无评论