Rest API not returning the correct title and metas

#565202
  • Resolved Anonymous
    Rank Math free

    I have added RankMath to a clients wordpress site and enabled headless mode so we can get the info from the rest api, but when making requests to the rest api it only ever returns the 404 title and noindex regardless of what page I query.

    For example when making a request to the getHead endpoint for the homepage, it recognises that I’m requesting a valid url, but does not return the correct data.

    I’ve checked theses pages over and they are all configured properly but it seems that the rest api can’t find the correct pages based on the url.

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

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

    I tested on my local environment and I received success message. Would you please share an affected URL so that we can test it on our end as well. In the mean time, do go over this article which explains about the Headless CMS : https://rankmath.com/kb/headless-cms-support/

    Looking forward to helping you.

    Anonymous
    Rank Math free

    I have added the url to the sensitive data. Can you please check further?

    Nigel
    Rank Math business

    Hello,

    We might need to take a closer look at the settings. Please edit the first post on this ticket and include your WordPress & FTP logins in the designated Sensitive Data section.

    Please do take a complete backup of your website before sharing the information with us.
    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.

    Anonymous
    Rank Math free

    Hello,

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

    Thank you.

    Hello,

    The credentials you shared are very limited and don’t allow us to debug the issue fully. Please make sure that you update those to the admin-level and get back to us so we verify the issue.

    Looking forward to hearing back from you.

    Anonymous
    Rank Math free

    Hi, The credentials have now been set to admin, hopefully this will help discover the cause of the issue

    Hello,

    This seems to be an issue with the custom functions you are using in your theme.

    Please install a default WordPress theme and update the plugin to the latest version to verify the response from the REST API at that point.

    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 7 replies - 1 through 7 (of 7 total)

The ticket ‘Rest API not returning the correct title and metas’ is closed to new replies.