Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Ryan Kienstra

    (@ryankienstra)

    Hi @dbetts,
    Thanks for reading the tutorial, and for asking about this.

    Sorry, I don’t think there’s a good way to have the block only appear on a post with a certain category.

    Thread Starter Don Betts

    (@dbetts)

    Hi @ryankienstra,

    Thanks for the quick response. Not sure I was clear in my question.

    I don’t want to limit the block to appear in posts with certain categories, but I’d like to be able to pick the post category for the post grid block to display (e.g. show only posts in the ‘news’ category in the post grid).

    Hopefully that makes more sense.

    Plugin Author Ryan Kienstra

    (@ryankienstra)

    Hi @dbetts,
    Ah, that makes sense. Sorry for the misunderstanding.

    I’m not sure if this would be of interest, as you’d have to manually populate the categories. But a Select field should work:

    https://getblocklab.com/docs/fields/select/

    Then, in the Choices <textarea>, you could enter the categories:

    foo : Foo
    baz : Baz

    Thread Starter Don Betts

    (@dbetts)

    Thanks @ryankienstra,

    I’d thought of that but was hoping there was a way to dynamically pull in the categories. If not, I might be able to make the select field work.

    I’ve seen this ability in other post grid blocks – but I want to create my own to totally customize it.

    Thanks!

    Plugin Author Ryan Kienstra

    (@ryankienstra)

    Yeah, it’s definitely not ideal manually populating the categories.

    There is a better solution for this, but not in the free version. I think that’s all the rules of the forums allow me to say.

    Thread Starter Don Betts

    (@dbetts)

    Ahhh – thanks. I’ll take a closer look!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Post Categories for Post Grid’ is closed to new replies.