• Thank you for your effort. The plugin looks very good.

    Unfortunately, the shortcode works only. When I insert the code (<?php do_action(‘gd_mylist_btn’); ?>) into the theme, unfortunately nothing is displayed. What am I doing wrong? Can I debug this anyhow?

    Using the shortcode is not a solution in my case.

    Hopefully someone can help me.

    Cheers,
    Björn

    https://ww.wp.xz.cn/plugins/gd-mylist/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter nabjoern

    (@nabjoern)

    Ok, I found a solution:
    I replaced the “return” in function “gd_show_mylist_btn” with “echo” or “print”. Now I can see the button in the page.
    Whether it is a bug or it does not work only for me, I’m not sure. Anyway, it has helped me.

    Cheers,
    Björn

    Thread Starter nabjoern

    (@nabjoern)

    I have noticed a problem with the mentioned workaround. Unfortunately, the “remove-button” no longer works on the Wishlist-Site?

    Plugin Author Andrea Greco

    (@andygi)

    Hi Nabjoern

    first of all thank you for have resolved the bug, I’ll add on new release 🙂
    regarding the remove button I’ll check and I’ll let you know.

    cheers

    Thread Starter nabjoern

    (@nabjoern)

    Hi andygi,

    no Problem. I have to thank you.
    Luckily I have also solved the other bug. But the solution is a bit dirty.

    function gd_show_mylist_btn($styletarget = null, $item_id = null, $echo = true )

    if($echo == true) {
    echo $html;
    } else {
    return $html;
    }

    I think that you could code a nicer solution.
    Cheers,
    Björn

    Plugin Author Andrea Greco

    (@andygi)

    Hi Björn

    thank you so much for your solution.
    I’ll provide a new one for next release, I hope in the end of February (busy time sorry).
    In meantime thank you again for support me.

    cheers

    Andy

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

The topic ‘Code in theme not working?’ is closed to new replies.