• I’m passing a variable to my snippet that includes spaces and the snippet plugin is adding a hyphen in between the words. “Talks in the Series” becomes “talks-in-the-series” when I echo the variable from the snippet.

    Here is what I send it
    [wbcr_php_snippet id=”3331″ list_title="Talks in the Series" talk_category="testing" show_number="99" direction="ASC"]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author webcraftic

    (@webcraftic)

    Hi,

    I will fix this problem with the next version of the plugin, this option was mainly intended for the transfer of simple values.

    Best regards, Alex

    Any estimate, for when the next version of the plugin will be released? (I need to pass text strings to the snippet, and it is vital that the strings are passed exactly intact, with the spaces and the capitalizations preserved.) If this wasn’t the sort of thing that this feature was intended for, then is there any other way of doing this, at present? Thanks.

    Plugin Author webcraftic

    (@webcraftic)

    Hi,
    To not wait for the release of a new plugin release. You can make changes manually. Edit the plugin file \wp-content\plugins\wp-plugin-insert-php\includes\shortcodes.php

    Just remove this line of code:
    $attr = array_map('sanitize_title', $attr);

    Best regards, Alex

    • This reply was modified 7 years, 10 months ago by webcraftic.
    • This reply was modified 7 years, 10 months ago by webcraftic.
    • This reply was modified 7 years, 10 months ago by webcraftic.

    O.K.- I appreciate your informing me of this temporary workaround, this should be helpful. Thanks!

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

The topic ‘Text Variables being modified’ is closed to new replies.