Filter Numbers with thousand separator

Forums › Forums › Search & Filter Pro › Filter Numbers with thousand separator

Viewing 10 posts – 11 through 20 (of 39 total)
  • Anonymous
    #246440

    I used dynamic content (ACF Price Field) that is displayed in the Text Editor field. Just added a “CHF” before and ” .- ” after.

    Trevor
    #246444

    Could you show me an annotated screenshot of this? You would need to upload the screenshot image to a file sharing site (like the WordPress Cloudup site) and share the link for it with me.

    Anonymous
    #246448

    I can also give you access to my website if that is easier

    Trevor
    #246450
    This reply has been marked as private.
    Anonymous
    #246452
    This reply has been marked as private.
    Trevor
    #246454
    This reply has been marked as private.
    Anonymous
    #246456
    This reply has been marked as private.
    Trevor
    #246545

    Well, I did not know you could add an ACF field like that in Elementor.

    That method you could not use.

    However, you could make a custom shortcode that itself contains PHP that WOULD do as you need (take a raw number and format it). You would need this plugin to make the shortcode with PHP in it.

    In a Text editor, in the Text tab, you would place the shortcode that you made). This is the plugin:

    https://wordpress.org/plugins/post-snippets/

    Anonymous
    #246557

    Okay perfect

    So could you tell me the code I have to put in there or tell me where I can find it? I will try it with this plugin 🙂

    Thank you so much for your effort

    Trevor
    #246563

    Let us do this in steps. Make a snippet named show_price and set it to PHP and Shortcode like this with this code:

    https://www.screencast.com/t/XE4JLnu9wCuy

    Code used:

    echo "this is the price";

    Then, in the Text tab of a Text editor, place the shortcode:

    [show_price]

    And see if that works (shows that message)? If it does …

    Make a test ACF field for the cars, named test_price, in one car add the raw price.

    Change the snippet to this:

    $test_price = get_field('test_price');
    if( $test_price ) echo $test_price;

    Check to see if on that car’s page, that worked? Then, if it does, we need to format the number.

Viewing 10 posts – 11 through 20 (of 39 total)
Search & Filter Support
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.

We also use cookies to store items in your cart as well as allowing your to login on the site.

You can adjust all of your cookie settings by navigating the tabs on the left hand side.

By continuing to use this site, you also agree to our Privacy Policy.