Viewing 4 replies - 1 through 4 (of 4 total)
  • Moderator bcworkz

    (@bcworkz)

    Something like this should work right below the foreach() line:
    <?php if ( $gallery->ID == $skip_this_ID ) continue; ?>

    Thread Starter kotoman

    (@kotoman)

    So I added the snipet in:

    <div class=”galleries”>
    <ul class=”gallery_list”>
    <?php foreach ($galleries as $k=>$gallery): ?>
    <?php if ( $gallery->ID == $skip_this_68 ) continue; ?>
    <?php if ($k > 0 && $k % 3 == 0): ?>

    <ul class=”gallery_list”>
    <?php endif; ?>
    <li class=”gallery_list_item”>ID == $gallery_id)?’active’:”; ?>” href=”<?php echo get_permalink($gallery->ID); ?>”><?php echo $gallery->post_title; ?>
    <?php endforeach; ?>

    </div>

    added the ID that the reveal plugin gave me but sadly nothing changed.
    Did I add it correctly?

    Paul

    Moderator bcworkz

    (@bcworkz)

    Sort of but not quite. If 68 is the ID, try this variant:
    <?php if ( $gallery->ID == 68 ) continue; ?>

    If this doesn’t work either, please post your latest code again, this time enclosed by backticks. Without them, the forum’s parser does weird things to your code such that it’s incomplete and possibly missing an important detail.

    Thread Starter kotoman

    (@kotoman)

    Score!!!

    Cheers for your help, that’s fixed it.

    Paul

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Excluding a gallery title from navigation’ is closed to new replies.