• Resolved guenstig-kochen.at

    (@guenstig-kochenat)


    hi,

    i have to call something like this

    function(‘$user_id’)

    doesn’t work.

    i tried

    function(‘<?php echo $user_id; ?>’)
    function(‘\”<?php echo $user_id; ?>\”‘)

    and so on. nothing happened.

    if i will give manually, for an example, ‘1’ … it works well.

    any hints to resolve that problem?

    regards form austria

    https://wordpress.org/plugins/jin-menu/

Viewing 3 replies - 1 through 3 (of 3 total)
  • lilpantherpaw

    (@lilpantherpaw)

    I have “Before and After Gallery” plugin installed.
    I changed my menu item “Gallery” to a custom link.
    I enabled “No Conflict” on Appearance>JinMenus
    I added my code from my Gallery plugin ‘onclick=”triggerBeforeAfterGallery(123)”‘

    Nothing happens when I click on the Gallery link in my navigation menu.

    Plugin Author Rohit Kumar

    (@aniketan)

    hello guenstig-kochen.at

    wordpress trim any tags before they sent to the database
    so your php variable will not work , only static value you can pass
    i will look further to employ this

    thanks

    Plugin Author Rohit Kumar

    (@aniketan)

    @lilpantherpaw your gallery will inject gallery codes only if there gallery menu links is in there .

    triggerBeforeAfterGallery will not work because this function is not present there so custom menu wont help you that

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

The topic ‘how to pass variable to function’ is closed to new replies.