Custom post archive page showing code

#650692
  • Hello on my page this is an archive page for a custom post type. It is showing code from Rankmath.

    Using the custom post type UI plugin, I disabled this custom post type from having an archive, and when I do this, this code page from RankMatch shows.

    I disabled the archive as I wish to use the /podcast URL for a new page I have made. But even after disabling the archive, the URL is not free and automatically saves my new page as /podcast-2.

    Is there a way to free up the /podcast slug for my new page and stop showing this rankmath code?

Viewing 9 replies - 1 through 9 (of 9 total)
  • I have prepared a loom as I cannot keep the url of the page live:

    Loom

    Also my ticket says I am Rank Math Free, even though I am a PRO user

    Hello,

    Thank you for contacting Rank Math and bringing your concern to our attention. I’m sorry for any inconvenience this issue may have caused you.

    You mentioned that you’re using Rank Math PRO but the account you have used to open this ticket is the Rank Math free version.

    Can you please search and forward a receipt from FastSpring.com or the email address you used to purchase so we can locate your account and verify it?

    Regarding the issue, this case usually happens when the Redirect Attachments option is enabled on your site. You can also test it by disabling that option, and the slug will work without the -2.

    If so, then you can re-upload the media with a different file name (/page-name) or at least rename the attachment URL to a different slug to avoid getting the -2 or -3 in the URL.

    Let us know how this goes.

    Thank you.

    The issue still remains. After disabling Redirect Attachments. The url still saves with a -2 on the end.

    Hello,

    We might need to take a closer look at the settings. Please edit the first post on this ticket and include your WordPress login 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.

    Hello,

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

    Thank you.

    Hello,

    The issue is coming from the Podcast module of our plugin. It has the feed with the same slug and that’s what is causing the issue with the podcast slug. Please use the following filter to change the slug of the podcast feed:

    add_filter( 'rank_math/podcast/feed', function( $podcast ) {
        return 'new-podcast';
    });

    Once done, please navigate to WP Dashboard > Settings > Permalinks and hit the update button to flush the permalinks. You should be able to use the podcast slug for your page.

    Here is how to add a filter to your site: https://rankmath.com/kb/wordpress-hooks-actions-filters/

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

    Thanks!

    Hello,

    We are super happy that this resolved your issue. If you have any other questions in the future, know that we are here to help you.

    If you don’t mind me asking, could you please leave us a review (if you haven’t already) on https://wordpress.org/support/plugin/seo-by-rank-math/reviews/#new-post about your overall experience with Rank Math? We appreciate your time and patience.

    If you do have another question in the future, please feel free to create a new forum topic, and it will be our pleasure to assist you again.

    Thank you.

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

The ticket ‘Custom post archive page showing code’ is closed to new replies.