Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter noban

    (@noban)

    Hi, thanks for Your reply. It put me on the right track.

    I checked the database and the records are indeed there. Both the old one from last year and the new ones I just created.

    Using a newly created one, I copied the changes to the old form, looked at my page and checked my top screen admin bar (for a caching plugin) and noticed WPForms is there as well and to my surprise it showed my form with a link to edit and it worked. I can access it, change and save it from there.

    I’ll still reach my provider. Malware check never hurts.

    Thread Starter noban

    (@noban)

    Thank you for Your advice. I’ll investigate.

    Thread Starter noban

    (@noban)

    I understand. I’ll try dig into it and not break it any more.
    One of the pages with the gallery is:
    https://www.bohunekvankova-reality.cz/nemovitost/prodej-bytu-31-81-m2-pohled/

    Thread Starter noban

    (@noban)

    <div class="nemovitost-galerie">
    <div class="nemovitost-galerie__featured">
    <?php
    $featured_full = get_the_post_thumbnail_url( $property, 'full' );
    $featured_large = get_the_post_thumbnail_url( $property, 'medium_large' );
    $image_caption = get_post(get_post_thumbnail_id())->post_excerpt; // Get image caption for PhotoSwipe
    ?>

    <a href="<?php echo $featured_full; ?>" data-size="1600x1067" data-pswp-uid="1" data-lbwps-gid="gallery-1"> <!-- Added data-lbwps-gid -->
    <img src="<?php echo $featured_large; ?>" alt="<?php echo esc_attr( get_the_title() ); ?>">
    </a>
    </div>

    <div class="nemovitost-galerie__thumbs">
    <?php
    $counter = 1; // Start counter for image UIDs
    foreach( $property->fotografie as $attach_id => $foto ) {
    if( $attach_id == get_post_thumbnail_id( $property->ID ) ) continue; // Skip featured photo

    $counter++;
    $size = $foto['medium'];
    $url = $size[0];
    $large_image_url = wp_get_attachment_image_src( $attach_id, 'full' );
    ?>

    <a href="<?php echo $large_image_url[0]; ?>" class="nemovitost-galerie__thumb <?php echo $counter > 9 ? 'nineplus' : ''; ?>" data-pswp-uid="<?php echo $counter; ?>" data-lbwps-gid="gallery-1"> <!-- Added data-lbwps-gid -->
    <img src="<?php echo $url; ?>" alt="<?php echo esc_attr($property->post_title); ?>" />
    </a>

    <?php
    }
    ?>
    </div>
    </div>
Viewing 4 replies - 1 through 4 (of 4 total)