Repeater from Custom Field Suite in SEO description

#191298
Viewing 8 replies - 1 through 8 (of 8 total)
  • Brian
    Rank Math free

    Hello,

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

    Repeater fields work based on the subfield types you are using. Since you are trying this within the SEO description am assuming you created the text subfield type.

    Therefore the for it to show the first subfield you have inserted in your post you need to use the custom field variable as: %customfield(field_name_0_subfield_name)%

    For to display the second instance of your subfield you should use the variable as:
    %customfield(field_name_1_subfield_name)%

    Note that there is an order to how you display these fields within your SEO description and in this case, the order is defined by the incremental or decremental state from 0 to a No X.

    For example, here I have created two subfield types under the brand_desc repeater field type: https://i.rankmath.com/XVYYIA

    Next, I have then defined their values within my post as shown in the screenshot below:
    repeater

    When it comes to setting them to show within the SEO description, I have used the 0 to call the first subfield and it has been displayed in the SEO meta box as shown: https://i.rankmath.com/IBJyzi

    Similarly, we have done the same for the second instance by using 1 to call the second instance of the same subfield: https://i.rankmath.com/GJ2tCT.

    In case you ish to display the second subfield as well simply switch the subfield_name in the custom field variable.

    Hope this helps. In case you have any other questions do let us know.

    We really look forward to helping you.

    Thank you.

    I tried to use %customfield(field_name_0_subfield_name)% but it’s no use. I tried also %customfield(subfield_name)% and it’s working but only for the first subfield. I’m using CFS plugin for the repeater, and in this plugin the repeater is not called repeater type, but it’s named “loop”. Could it be the problem?

    Hello,

    Thank you for keeping in touch with us.

    We might need to check your setup/settings so we can further understand the problem and further advice you on a solution. 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.

    Hi, I have added the sensitive data, please use the TVspre custom post type for testing, thanks!

    Hello,

    I tried accessing your admin but it redirected me to a 404 page. Could you please share the correct admin link so we can further check this?

    We are looking forward to helping you

    Sorry, Please check again now, I reverted login url to wp-admin, you can use file manager plugin to go through the files instead of ftp.

    Hello,

    Thanks for getting back to us.

    Upon further inspection, it seems that the implementation for the repeater fields from CFS is not working with Rank Math. Using the ACF plugin and following the steps mentioned by my colleague in a previous reply the custom field does show the correct values.

    Hope this helps clarify your doubts.

    Don’t hesitate to get in touch if you have any other questions.

    Hello,

    Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.

    If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.

    Thank you.

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

The ticket ‘Repeater from Custom Field Suite in SEO description’ is closed to new replies.