Ready to get started?Download WordPress


Dynamic Content Gallery
[resolved] Can I display pictures without linking to pages? (3 posts)

  1. nat3
    Posted 3 years ago #

    I would like to use DCG to display pictures (with the image URLs and descriptions pulled from pages), but I don't want the gallery to be a link to the pages. i.e: I don't want the user to click on the pictures and go to the pages.

    Is there a way to do this?


  2. nat3
    Posted 3 years ago #

    I thought I'd mention that I tried commenting out the below code:

    // Link - additional code courtesy of Martin Downer
    if( get_post_meta($page_found->ID, $link, true) ){
    	// We have an external/manual link
    	$output .= "\n\t" . '<a href="'. get_post_meta($page_found->ID, $link, true) .'" title="Read More" class="open"></a>';
    } else {
    	$output .= "\n\t" . '<a href="'. get_permalink($page_found->ID) .'" title="Read More" class="open"></a>';

    But then the DCG is just black on the page.

  3. studiograsshopper
    Plugin Author

    Posted 3 years ago #

    No, you can't do this. The DCG is designed specifically to link to Pages/Posts. It is not a slideshow plugin and something like NextGen Gallery will be a much better solution for slideshows.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic