• Resolved Perry_Rhodan

    (@perryrhodan)


    I am using TablePress and also Gravity Forms and like to display data using the GarivityWP plugin. However, the below will fail as the “&” is translated when saving a table definition:
    [gravitywp_count formid=”1″ filter_field=”2″ filter_value=”Data & Co.” ]
    Is there a way to not have data in a shortcode parsed ? Or if not, where can I find the stored table definition so I change it somewhere in the backend?

    Thanks for any help

    • This topic was modified 7 years, 6 months ago by Perry_Rhodan.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    thanks for your question, and sorry for the trouble.

    Can you please elaborate on this a bit more? Did you place this Shortcode in a table cell of a TablePress table? How do you know it’s the & that’s causing the problem? With translated, do you mean that it’s converted to it’s escaped entity (“&”)?

    Regards,
    Tobias

    Thread Starter Perry_Rhodan

    (@perryrhodan)

    Hi Tobias,
    Yes I placed the short code into the cell of a TablePress table. Removing the & made the whole thing work. So my assumption is that the & is translated to & but with knowing where TablePress stores the metadata I can’t fully prove it.

    Thanks
    Thorsten

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi Thorsten,

    TablePress stores its data in a custom post type in the “wp_posts” database table, in a JSON encoded format.
    Most likely, everything will be fine there. This is more likely caused by TablePress only evaluating Shortcodes after sanitizing the data a bit, in the line
    $cell_content = do_shortcode( $this->safe_output( $cell_content ) );
    in the class-render.php file.

    Can you maybe modify the source data in gravitywp, so that the filter matches again?

    Regards,
    Tobias

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Shortcodes with special characters’ is closed to new replies.