FAQ not working with generateblocks

#150265
  • Resolved Easypeasy
    Rank Math free

    Hi
    I just came across #82456 because it seems that rank math still doesn’t work correctly using generateblocks.
    The mentioned code seems not to work.

    add_filter( ‘rank_math/schema/nested_blocks’, function( $nested ) {
    $nested[] = ‘generateblocks/container’;
    $nested[] = ‘generateblocks/grid’;
    return $nested;
    });

    Do you have any updates on this?

Viewing 11 replies - 1 through 11 (of 11 total)
  • Hello,

    Thank you for contacting Rank Math and sorry for any inconvenience that might have been caused due to that.

    The issue came up as a result of nesting FAQ blocks within other blocks. The code you shared was meant to read the block inside the nested block.

    Depending on how you are adding your blocks, this code may need to be applied in a different way.

    We however recommend adding the FAQ block as it’s own block instead of having it nested to make it easier to add related schema.

    Looking forward to helping you. Thank you.

    ​​​​​​​

    I do understand that you recommend not nesting the FAQ block within other blocks. But unfortunately, nesting is often necessary for the layout of a website.
    Is there any chance to fix this so that Rank Math supports the nesting of the FAQ block?

    Hello,

    The code shared was meant to target an FAQ Block nested within a container within a nested block.

    You will need to customize it according to how/where you have added the FAQ block. If you have only nested it once or within more blocks.

    You can get in touch with generate blocks to help customize the code further.

    Hope that helps and please do not hesitate to let us know if you need our assistance with anything else.

    I will make additional inquiries at Generateblocks. The FAQ is integrated as follows: Container > Grid > Container > FAQ

    It would still be great if you could take care of the nesting, as this is not uncommon and limits the way of working with rank math

    Hello again,
    I have been in contact with generateblocks.
    GenerateBlocks itself isn’t doing anything special – it’s a dynamic block with inner blocks that should be accessible.
    So I kindly ask you if you could have a look at the scanning of the FAQ block. Thanks in advance.

    I have now had further contact with the GenerateBlocks developer. If you think this is due to GenerateBlocks misbehaving it would be helpful if you could provide more information as to why you think it is due to GenerateBlocks. You can always contact Tom, the developer of GenerateBlocks. He would fix the problem if it is due to GenerateBlocks.

    Another thing he mentioned:
    “However, if it is an issue with GenerateBlocks, it will likely become an issue with other block plugins as more dynamic blocks are published/used by their users since GenerateBlocks uses 100% core WordPress functionality.”

    Hello,

    We do have an advanced way of adding the FAQ schema in the Pro version where you only use a shortcode to add it to your content.

    At the moment allow me to try and customize the filter for you to see if it works. To apply and test this, please edit the first post on this ticket and include your WordPress & FTP logins in the designated Sensitive Data section.
    Sensitive Data Section

    It is completely secure and only our support staff has access to that section. If you want, you can use the below plugin to generate a temporary login URL to your website and share that with us instead:

    https://wordpress.org/plugins/temporary-login-without-password/

    You can use the above plugin in conjunction with the WP Security Audit Log to monitor what changes our staff might make on your website (if any):

    https://wordpress.org/plugins/wp-security-audit-log/

    We really look forward to helping you.

    Hello,

    I have updated the sensitive data as requested. Can you please check further?

    Thank you.

    Hello,

    I made some slight changes to the code and now it seems to work, here is a link to the results: https://search.google.com/test/rich-results?id=2EyDP3PZgFnR2iGE8662wA

    Would you please check the same from your end and confirm this.

    Please do not hesitate to let us know if you need our assistance with anything else.

    Hello Michael,

    it seems to work now.
    Could you please give me the information what changes you actually made, so I can fix this behavior on other pages as well?
    Also, it would be good to know if this is an actual problem with Rank Math or if it is related to GenerateBlocks? If it is related to GenerateBlocks, I could give a hint to the developer to fix the problem.
    If it is related to rank math, will this be fixed in the next version?

    Thanks!

    Hello,

    I am glad this is resolved.

    I revised the code and only had to change the apostrophes‘..’ in the filter to quotes '..'.

    Do you have any further questions?

    Thank you

Viewing 11 replies - 1 through 11 (of 11 total)

You must be logged in to reply to this ticket.