[Support request] Show current category only

Please login to receive premium support.

Support for the free plugin can be found here.

Home Forums Pro Support Show current category only

This topic contains 3 replies, has 2 voices, and was last updated by  Tom 1 week, 2 days ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #7113

    paul
    Participant

    Hello,

    I want to show post in the sidebar that are from the current category only. Ie when viewing a post in Category A the sidebar should only show posts from Category A, same for Category B and so on. Is there a way to achieve this? I am running GP Pro so could add filters etc if necessary.

    Thanks

    #7123

    Tom
    Keymaster

    Hi there,

    The only way to do this right now is with the function, as we need to use PHP to determine the current category.

    I don’t believe it’s possible to execute PHP in a widget, unfortunately.

    This is something I’d like to add as core functionality in the free plugin.

    #7126

    paul
    Participant

    Is this coming imminently? If not how do I achieve this using a fuction. I have GP Pro and Wpsp Pro.

    Thanks

    #7132

    Tom
    Keymaster

    To do it with a function, you would do something like this: https://wpshowposts.com/support/topic/possible-to-show-posts-by-taxonomy-rather-than-by-specific-terms/#post-3922

    WPSP Pro has a beta update coming this week, but this functionality would go in the free version, which won’t have an update until after WPSP Pro is out.

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.