Titles Archive CPT Elementor

#402843
  • Resolved Sebasweb
    Rank Math free

    Hello RankMath,

    I have a problem, and it is that no matter how much I try to configure the title of the Archive so that it is seen with that of the snipet, the title is not displayed correctly.

    I have implemented this code and it works, that is, I have been able to activate Rank Math in the file

    /**
    * Enable Rank Math SEO in Elementor templates
    */
    add_filter( ‘rank_math/excluded_post_types’,function( $post_types) {
    $post_types[‘elementor_library’] = ‘elementor_library’;
    return $post_types;
    }, 11 );

    but when I go to see the page, it does not put the title that I need. In fact, I tried with custom fields and putting the field name in the title %customfield(titulo-seo)% but it doesn’t work either.

    I can’t find a way to solve this, could you help me please, thank you very much.

    This is my url where i have my CPT Archive https://staging2.smowl.net/es/faqs-proctoring/ and the title that i want is “FAQs Preguntas Frecuentes”

    By the way, I love your plugin

    If you want a meet or something like that, just tell me, thank you so much.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Anas
    Rank Math business

    Hello,

    Thank you for contacting Rank Math, and sorry for any inconvenience caused.

    I have added this filter to your website:

    add_filter( 'rank_math/frontend/title', function( $title ) {
    	if(is_post_type_archive('faqs-proctoring')){
    		$title = "FAQs Preguntas Frecuentes";
    	}
    	return $title;
    });

    The title is now updated:
    updated

    Please check and let us know if you have any questions.

    We are here to assist you.

    Hello Anas

    Thank you very much for your prompt response and support.

    I understand why the code you have put, refers to the name of the CTP, but not the archive.

    The problem is that when you want to have the page in other languages, like right now, you would need to put it in English, so it would have the same name that you put in your code.

    On the other hand, I think I’m having the same problem with the taxonomies, they are left with the name of the Archive, but I can’t modify them.

    Try doing it with custom fields, in fact you can see it if you go to https://staging2.smowl.net/wp-admin/post.php?post=12974&action=edit
    but it didn’t work for me.

    Do you think that we could do something considering these problems that I am having, this part of SEO is super important for my client.

    If you can, we can make a video call, just tell me.

    Thank you so much

    Nigel
    Rank Math business

    Hello,

    I created an English version of the archive page and was able to edit the translated SEO meta title and description: https://staging2.smowl.net/wp-admin/post.php?post=13090&action=edit. I used the default Rank Math SEO meta. You may need to enable translations for the custom fields if you prefer to use them.

    If I misunderstood your question, you can share a screencast using a tool like loom.com.

    Hope that helps. Please let us know if you have questions.

    Thank you very much Nigel for your answer.

    I have seen that you created a new file for the English language, associated with the Spanish one in the polylang options, but:

    I don’t see the option to view this file in the front.

    The data you put in the snippet is not seen in the Spanish language or in the English language, that’s why your partner has put the title through code in a code snippet.

    What I would need is that the SEO option that I have been able to activate in the file works precisely.

    Will this be possible?

    I have no problem meeting through a meet

    First video https://www.loom.com/share/c0509aca1ce84a469beedea6c47f92f2

    Second video: https://www.loom.com/share/3964f5c4acd746d0a989dd55014b2a85

    Hello,

    I deeply apologize but our scope of support does not extend to screen sharing or video sessions.

    From what I understood, you wish to apply the meta title you applied in Elementor templates to the CPT where the template is used? Please correct me if I am wrong.

    If that is the case, this may not work, that is why my colleague previously shared the filter to forcibly edit the title. If you wish to make use of the custom field from your templates to the CPT page, then you need to further customize the filter code.

    Looking forward to helping you on this one.

    Hi Jeremy, thank you very much for your answer.

    In another ticket I shared this video with a colleague of yours https://www.loom.com/share/7152a126d44f4a78a2a24785fb305a54 and if you look at his answer, he recommended https://rankmath.com/kb/filters-hooks -api-developer/ #add-extra-variables to which I replied that I would not know how to apply it, in fact, I just tried it on the page with code snippets and when activating the code I have a fatal error and the site crashes.

    If I activate the plugin again, I have the same error.

    But yes, what I want is to be able to put the titles and descriptions to the files with dynamic fields, because I think that is the best way.

    Hello,

    Since this ticket is for the same issue, we are closing this. Please continue the discussion on this ticket: https://support.rankmath.com/ticket/custom-field-5/?view=all

    Thanks.

    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 ‘Titles Archive CPT Elementor’ is closed to new replies.