• Hello coders,
    I have 2 problems, on website i’m making right now
    link

    this link show us single post of past events.
    I need somehow to fix that when you click on THANK YOU button to go to post where you can see donators and guests of only this event.
    How to do that, is there someway to connect to posts or to add custom field for this list and when you click on button to get somehow.

    Second problem is less difficult (i guess), when user click on PHOTOS need to pop up lightbox gallery with uploaded images, what is the best way to do this. TO add somehow images from wp add media or there is some good plugin for it. I now how to call lightbox but how to organize gallery to be hidden and when click on PHOTOS to get lightbox “pop up” with big images and left right navigation.

    Thank you for the answers.

Viewing 2 replies - 1 through 2 (of 2 total)
  • I’ll tackle the first one.

    When you are creating/editing the post, go down to “Custom Fields” where you will add a key of “thank_you_url” and then the value will be the actually URL you want to send people to.

    In you template, Just use the following snippet:

    <?php
    $thank_you_url = get_post_meta($post->ID, 'thank_you_url', true);
    if($thank_you_url): ?>
    <a href="<?php echo rawurlencode($thank_you_url); ?>">Thank You</a>
    <?php endif; ?>

    Thread Starter zedesino

    (@zedesino)

    Thank you for the answer.
    It works nice. i will use same metod for second question.

    Ciao!

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

The topic ‘2 advanced problems’ is closed to new replies.