• Resolved adejones

    (@adejones)


    Hi, does this work with Advanced custom fields? I have a repeater field creating a table on a page, so in the template I wrapped this in

    echo do_shortcode('[subscribe_to_unlock_form]');
    TABLE HERE
    echo do_shortcode('[/subscribe_to_unlock_form]');

    But this didn’t seem to work unfortunately, maybe there is another way you could tell me?

    Thanks.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author WP Shuffle

    (@wpshuffle)

    Hello @adejones,

    Thank you for writing to us. To wrap some html through shortcode, you should include the html inside the do_shortcode function like below manner.

    echo do_shortcode('[subscribe_to_unlock_form]'.$table_html.'[/subscribe_to_unlock_form]');

    If your table is being generated in some specific file then you can also use ob_get_contents function to get the content of the file in a variable like in below manner.

    ob_start();
    Your table content here;
    $table_html = ob_get_contents();
    ob_end_clean();
    echo do_shortcode('[subscribe_to_unlock_form]'.$table_html.'[/subscribe_to_unlock_form]');


    Hope this helps and please let us know if you still have any confusions regarding this.

    Thanks.


    Plugin Author WP Shuffle

    (@wpshuffle)

    FYI: It seems the inline code block has messed up the code formatting. We have added code in the pastebin which is available in the link below.

    https://pastebin.com/5ZZ2p61C

    Thread Starter adejones

    (@adejones)

    Thanks for your help, that worked perfectly and you can see it here – https://tinyurl.com/76h6neh8

    Just one more thing, it is possible to amend the blur slightly to actually reveal the top 2-3 rows of the table before blurring? Would like to just show a short preview first.

    Thanks

    Plugin Author WP Shuffle

    (@wpshuffle)

    Hi @adejones,

    Thank you for your reply. Unfortunately that is not possible because we are using CSS position and blurring the whole section where it contains both the content as well as the form.

    Please do let us know if you need any further help.

    Regards,
    WP Shuffle

    Thread Starter adejones

    (@adejones)

    Ahh OK, unfortunately it sounds like that’s a deal breaker with the client as they really want to reveal some. And the position cant be amended to have 100px on ‘top’ to move the blur down at all?

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Custom fields? (ACF)’ is closed to new replies.