Insert Custom Field Value in Breadcrumbs

#166577
  • Resolved Puneet
    Rank Math free

    Refrencing to Post-27299

    Q. How to insert Custom Field value and that post permalink into the breadcrumb.
    For Example, I Have Custom Field Name (Company) and have CF Value (Rankmath), and that posts permalink is https://www.example.com/permalink so Breadcrumb should be ../…/Rankmath (with Permalink including on Rankmath). Should also work for CPT Posts.

    What to modify in the code here –
    $value[] = array(
    'Custom Page',
    'http://localhost/rankmath',
    'hide_in_schema' => false
    );

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

    Thank you for contacting Rank Math and bringing your concern to our attention.

    The Custom Page is the text that will show in the Breadcrumbs on the front end, and the ‘http://localhost/rankmath’ is the link where it should go upon clicking.

    From your example, could you please confirm if you’re trying to achieve example.com/permalink/Rankmath? Please correct me if I’m wrong.

    However, please also provide the actual URL in the sensitive data section for us to further check. You can add them in the sensitive data section
    Sensitive Data Section

    It is completely secure, and only our support staff has access to that section.

    I hope that helps. Thank you, and looking forward to your update.

    Puneet
    Rank Math free

    Custom Page – Custom field value
    Permalink – Post Permalink

    Hello,

    Thanks for getting back.

    Custom Page is the name you want to display in the breadcrumbs. You can set it to anything you want and the permalink is the URL of the custom page that you can also set manually.

    Hope this helps. Let us know if you need any further assistance.

    Puneet
    Rank Math free

    No, I want to do it automatically.
    <br>
    Let me clarify the question.<br>
    I want to print Custom Field Value @ Custom Page so i have tried to achieve that with $output .= get_post_meta( $post->ID, 'Company', true ), But it print Post Permalink (Rankmath Company Review), If the whole permalink is example.com/permalink/rankmath-company-review.

    Hello,

    Thank you for following up, and sorry for the delay.

    I’ve already passed your concern to our dev team for further checking and will get back to you shortly. We really appreciate your kind patience regarding this matter.

    Meanwhile, please don’t hesitate to contact us anytime to assist you further with anything else.

    Thank you.

    Hello,

    Unfortunately, we do not have an option to do that. However, there are pending feature requests on improving the Breadcrumbs and we are adding your request as well.

    If it is feasible to add and requested by multiple users – we would love to add it in one of the upcoming updates.

    Hope that helps.

    Puneet
    Rank Math free

    Sure, but can you help me to do with my own code that I explained above?

    Hello,

    Thanks for getting back to us.

    Unfortunately, our team can’t really provide a lot of code customizations for features like this because it falls outside the scope of our support.

    You’ll need to hire a developer to look into this issue if you are not able to modify the code to suit your needs.

    Hope you understand.

    Don’t hesitate to get in touch if you require assistance with any other topic.

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

The ticket ‘Insert Custom Field Value in Breadcrumbs’ is closed to new replies.