[resolved] Links in shortcode (3 posts)

  1. jamesdfulton
    Posted 4 years ago #


    I'm using the following code to grab the gallery images from a page except the feature image. It's working great except I do not want it to link to the image or any other link for that matter.

    <?php echo do_shortcode('[gallery size="portfolio-main" exclude="' . get_post_thumbnail_id( $post->ID ) . '" ]'); ?>

    I've seen a few posts online to include link="file" but had no luck.

    I'm sure it's something small but just cannot get it to work.

  2. I am still learning all the worpdress nooks and cranny's... but I would look in the functions file of where that shortcode is being defined. The plugin you are using probably has it's own functions file.

    There, you should find the php defining the link and either comment it out or remove it.

  3. keesiemeijer
    Posted 4 years ago #

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.