%customterm(taxonomy-name)% in custom title doesn’t work

  • Hi
    I want to customize the title of a custom post type single article.
    There is a taxonomy called taxo_personnes_fonction

    for example in the custom content.php file, I have this code
    $terms = get_the_terms($post->ID, ‘taxo_personnes_fonction’);
    it works well, the output is an array of terms.

    I want to use in the title something like %customterm(taxonomy-name)% but it doesn’t work (empty result)
    I have tested %customterm(taxo_personnes_fonction)% and %customterm(‘taxo_personnes_fonction’)% and %customterm_desc(‘taxo_personnes_fonction’)%

    Thank you

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

    Thank you for contacting Rank Math and sorry for any inconvenience that might have been caused due to that.
    ​​​​​​​
    We might need to take a closer look at the settings. Please edit the first post on this ticket and include your WP 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.

    What role level do you need?

    Hello,

    Thank you for follow up.

    A temporary admin access would suffice to avoid limitations to access sections which might be essential to our troubleshooting process.

    Looking forward to helping you. Thank you.

    ​​​​​​

    Hello,

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

    Thank you.

    Hello,

    It seems the login URL expired so we can’t log in and check it. Could you extend the time?

    Looking forward to help you.

    done

    Hello,

    Thank you for contacting Rank Math today.

    It seems to work by removing the quotes i.e. %customterm(taxo_personnes_fonction)%. I have attached title source code screenshots of the links you have provided in the sensitive section.

    Looking forward to helping you. Thank you.

    ​​​​​​

    yes, it seems to work, thanks.

    in the mean time, the plugin has been (automatically) updated. And now, I have 2 PHP warnings:

    Notice: Trying to get property 'base' of non-object in /path/wp-content/plugins/seo-by-rank-math/includes/replace-variables/class-manager.php on line 134
    
    Notice: Trying to get property 'base' of non-object in /path/wp-content/plugins/seo-by-rank-math/includes/replace-variables/class-manager.php on line 155

    Hello,

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

    Would you please let us know how to reproduce this.

    Assuming you are using the latest version of all the plugins and the themes (please update if not yet), it would seem like a conflict with one of the plugins or the theme you are using.

    To determine that, please follow this troubleshooting guide:
    https://rankmath.com/kb/check-plugin-conflicts/

    Please let us know if you find the culprit.

    Only the site admin would know and your users won’t be affected by this troubleshooting.

    Looking forward to helping you.

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

You must be logged in to reply to this ticket.