Flexible Posts Widget
[resolved] Can I show only posts that share the currently viewed page taxonomy? (2 posts)

  1. draivika
    Posted 2 years ago #

    Want to limit the results shown in the widget only show posts from the same taxonomy of the currently viewed page, yet show posts from yet another taxonomy.

    example, the current page is of the taxonomy of meal (breakfast) and also food (eggs)

    I want to show related posts that are also breakfast but other types. if there are posts from lunch and dinner, they would not show.

    make sense?


  2. DaveE
    Plugin Author

    Posted 2 years ago #

    Hi draivika,

    The best solution for this would be to customize the plugin and create your own query to handle this. The plugin doesn't naturally work that way.

    You'd be editing 'flexible-posts-widget.php` and setting up an advanced query that can get posts from the current tax/term and another tax/term while also excluding other tax/terms. See this article for a discussion on advanced taxonomy queries: http://ottopress.com/2010/wordpress-3-1-advanced-taxonomy-queries/.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Flexible Posts Widget
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.