Forums

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

  1. draivika
    Member
    Posted 6 months 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?

    http://wordpress.org/extend/plugins/flexible-posts-widget/

  2. DaveE
    Member
    Plugin Author

    Posted 6 months 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/.

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.