• Resolved timbearcub

    (@timbearcub)


    Hi – given the shift to Full Site Editing the limited nature of blocks means that having something like this with FSE would be ace.

    Problem is – this plugin doesn’t seem to work with FSE?

    I have tried it on my production site which uses a TwentyEleven child theme, and local site with a TwentyTwentyThree child theme within a post – it shows Custom HTML and Paragraph blocks correctly with Block Logic

    (I am using a conditional on the author name) – get_the_author_meta('user_nicename') == "X” – get_the_author () == "X" also works btw).

    But as soon as I try to do a conditional with a block in a FSE template, nothing shows. I’ve checked using an Insert PHP Shortcode plugin with:

    <?php echo get_the_author(); echo get_the_author_meta('user_nicename') ?>

    Both show the result correctly on the page, returning the author name, so I am guessing access to the author WP hook is still working within FSE.

    Can’t see why it shouldn’t work if those conditionals work in PHP.

    Any idea why?

    • This topic was modified 1 year, 10 months ago by timbearcub.
    • This topic was modified 1 year, 10 months ago by timbearcub.
    • This topic was modified 1 year, 10 months ago by timbearcub.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter timbearcub

    (@timbearcub)

    Update: weird, it works with headers and Cover/Image blocks in a FSE header, but not Custom HTML (I was trying to put a custom CSS in according to author, hence the Custom HTML) so it seems there is an issue with Custom HTML and FSE.

    So at least I can do the author headers! Was dreading trying to do that with CSS…

    • This reply was modified 1 year, 10 months ago by timbearcub.
    Plugin Author landwire

    (@landwire)

    @timbearcub
    On top of my head I think the plugin does not work with the Custom HTML block because it is handled differently. I seem to remember having looked into this before and could not come to a result. I try and ask in a WordPress forum, why that could be the case.

    I get back to you as soon as I have some findings.

    Plugin Author landwire

    (@landwire)

    So that problem was there before: https://www.ads-software.com/support/topic/block-logic-not-working-with-html-block-widget/

    I remember looking into it, but then not really getting anywhere. I would have to take some more time and see what the problem is. Not sure when I get to this. Could you let me know if Block Logic works with the HTML Block in the normal editor?

    Plugin Author landwire

    (@landwire)

    Closing this because of no reply. Just create a new topic if needed.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Doesn’t work with Full Site Editing templates’ is closed to new replies.