PLACE SHORTCODE IN PRODUCT PRICE SNIPPET

#75748
  • Resolved Moon Walk Seo
    Rank Math free

    Hello,
    Instead of giving a fixed price to a product snipet I want Rankmath to update it dinamacally for that purpose to retrieve the price from amazon i am using a shortcode from aawp retrieving just the price number.

    The problem is that i want rankmath to allow me to place a shortcode in the product price field.

    How can i do that?

    Cheers,
    Victor

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

    Thank you for contacting Rank Math today.

    You can allow the addition of shortcodes to the meta description by adding the following snippet to your theme’s functions.php file:

    /**
     * Allow shortcodes in the Meta Data.
     */
    add_filter( 'rank_math/paper/auto_generated_description/apply_shortcode', '__return_true' );

    Looking forward to helping you. Thank you.

    ​​​​​​

    I place that in my functions.php, then i go to the page -> SEO -> product and I introduce the shortcode in the price field.

    Same result the shortcode is not applied and no price is shown.

    Hello,

    The code should show the data in the front end, did you check?

    If so, then 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.

    Hello,

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

    Thank you.

    For example in the review:
    https://xxxxxxx/vatos-9135r/
    I want to place the price retrieved by the shortcode in the price field:
    [amazon fields=”B089D1NVWJ” value=”price” format=”amount”]

    Hi,

    I am sorry but we do not do that.

    You might be able to find an Amazon affiliate plugin that does that but Rank Math being an SEO plugin does not have an option to fetch prices from 3rd part website.

    Hope that helps.

    I know that u are just a SEO plugin.
    And I have a plugin that retrieves the price given a specific shortcode,

    I want to be able to place a shortcode in the rankmath [SEO section product price of an specific page] instead of 9.99 i want to put a [shortcode].

    cheers,

    Hi,

    Do you mean you want Rank Math to process the shortcodes in the meta description?

    You can do so with this filter in your theme’s functions.php file:
    https://rankmath.com/kb/filters-hooks-api-developer/#allow-shortcodes

    Hope that helps.

    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 ‘PLACE SHORTCODE IN PRODUCT PRICE SNIPPET’ is closed to new replies.