• Resolved happy29451

    (@happy29451)


    I want to use Popup Anything on Click on Custom fields.
    When I use shortcode, the shortcode shows up like [popup_anything id=”123″].

    I think I should edit the code below but I don’t know how.
    echo get_post_meta($post->ID, ‘item-list’, true);

    I will be happy if someone help me.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Anoop Ranawat

    (@anoopranawat)

    Hello @happy29451,

    Can you please share a screenshot showing how and where you are adding shortcode?

    Thread Starter happy29451

    (@happy29451)

    Thank you @anoopranawat.

    Here is a screenshot.
    screenshot

    I just added a shortcode which I made by Popup Anything on Click then published.
    This is the shopping webpage.
    The Custom fields work well except shortcode part.

    Plugin Contributor Ketan Patel

    (@patelketan)

    Hello,

    Thanks for reaching here.

    I think our plugin not active on this website ( dashboard -> plugins ) please check your side and activate our plugin.

    If you have using page so please pass this shortcode.
    Ex: [popup_anything id="122"]

    OR

    If you have using the theme template file so please pass this shortcode in your theme template file.
    Ex: <?php echo do_shortcode('[popup_anything id="122"]'); ?>

    Your problem still now, please send your website URL.

    Let me know if you have any query.

    Thanks,

    Thread Starter happy29451

    (@happy29451)

    Hello @patelketan,

    Thank you for your advice.
    It is active.
    I know what you mean but I need to use Custom fields because shortcode isn’t the same every time.

    If you have any idea to figure it out, I will be happy.
    Thank you.

    Plugin Support Riddhi Shukla

    (@ridhimashukla)

    Hi,

    Thank you for reaching us…

    Are you using Advanced Custom Fields to create text area option to add popup shortcode?

    Thank You!

    Thread Starter happy29451

    (@happy29451)

    Hi @ridhimashukla,

    Thank you for your support.
    No, I don’t use Advanced Custom Fields plugin.
    I’m using default WordPress Custom fields and added cords on the template.

    <?php if(get_post_meta($post->ID, ‘ABC’,true)): ?>
    <span class=”post-meta-key”>ABC</span>
    <?php echo get_post_meta($post->ID, ‘ABC’, true);?>
    <?php endif; ?>

    like this.

    Thank you.

    • This reply was modified 4 years, 5 months ago by happy29451.
    • This reply was modified 4 years, 5 months ago by happy29451.
    • This reply was modified 4 years, 5 months ago by happy29451.
Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘How to: Custom fields area’ is closed to new replies.