CPT settings

#305755
  • Resolved Arnas
    Rank Math free

    Hi,

    I use a listing directory theme. When I created CPT via theme it automatically appeared in RM’s Titles/Meta settings. But now I created the second CPT and it just inherits the first CPT’s settings, there are no separate settings for that second CPT in Titles/Meta.

    How can I set default Titles/META for the new CPT? Now I have to individually edit every single listing when users add it.

    Thank you!

Viewing 15 replies - 1 through 15 (of 19 total)
  • 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.

    Rank Math should automatically detect and add CPT’s to the Titles & Meta settings with correct details unless the plugin or theme that is generating these CPTs is not properly created for WordPress’s standard.

    In case they are not showing in the Titles & Meta option, we can 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.

    Thank you.

    Arnas
    Rank Math free

    Hello,

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

    Thank you.

    Arnas
    Rank Math free

    Thank you! I updated sensitive data.

    P.S.: Keep in mind it’s live website please.

    Hello,

    The Produktai CPT is coming from WooCommerce and it’s already been added in the Titles & Meta settings.

    Could you please clarify what is the name of the second CPT that you want to add in the Titles & Meta and it’s not currently there?

    Looking forward to hearing back from you.

    Arnas
    Rank Math free

    It’s the same name as Woo – Produktai.

    Hello,

    You can’t have two CPTs with the same name on your website as that will cause conflicts.

    You’ll need to add the CPT with a slightly different name otherwise it will inherit the settings from the CPT already created with the same name.

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

    Arnas
    Rank Math free

    Hi,

    CPT name is not the same, it’s just a coincidence that Woo “Products” translation is the same as my CPT. For your convenience I change backend language to English, now it will be more clear for you. Thank you.

    Arnas
    Rank Math free

    Hi,

    So there is no solution for this? Maybe it’s possible to hard-code meta title via functions.php for this post-type?

    Thank you.

    Hello,

    We still can’t find the CPT that you mention on your website.

    Could you please share the direct access link to that CPT when you are on your website backend so we can see which one you are talking about?

    Looking forward to helping you.

    Arnas
    Rank Math free

    Hello,

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

    Thank you.

    Arnas
    Rank Math free

    Hi,

    I updated sensitive details. Thanks.

    Hello,

    We added the following code to include that CPT inside Rank Math:

    
    // Add CPT inside Rank Math
    add_filter( 'rank_math/excluded_post_types',function( $post_types) {
         $post_types['case27_listing_type'] = 'case27_listing_type';
         return $post_types;
    }, 11 );
    

    Hope this helps solve your issues.

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

    Arnas
    Rank Math free

    Hello,

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

    Thank you.

    Arnas
    Rank Math free

    Hi. Thank you, but this doesn’t work. CPT2 still inherits settings from CPT1. Please check screenshots I attached.

    Hello,

    After some debugging, we found exactly what you are referring to and that is not a CPT but rather a listing type.

    The actual CPT is the listing type and not the “Produktai” that you add there.

    Because of this, the settings from this will be inherited from the actual CPT that holds these.

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

Viewing 15 replies - 1 through 15 (of 19 total)

The ticket ‘CPT settings’ is closed to new replies.