Forum

Please make sure that you have read the documentation and extensive resources provided on this site before posting your question!

Dynamic Content Gallery Resources

DCG Version 4.0 beta is now available for download and testing. This is a development version and not recommended for live sites. Read more here.

Note that the current stable release of the DCG is version 3.3.5.

 
You must be logged in to post Login Register


Register? | Lost Your Password?

Search Forums:


 






Minimum search word length is 3 characters – Maximum search word length is 84 characters
Wildcard Usage:
*  matches any number of characters    %  matches exactly one character

Can I display pictures without linking to pages?

open
UserPost

3:04 am
August 11, 2010


n3wb

Guest

1

Hi! I posted this question on wordpress.org before finding this forum, but since this forum seems active while the wordpress.org one doesn't, I'll repost it here.

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?

I tried commenting out the below code, but then the DCG is just black on the page.

// 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>';
}

9:03 pm
August 11, 2010


Ade

Admin

posts 2384

2

Hi,

No, the DCG doesn't work like that. If you know javascript it may be possible to modify the javascript file to do what you want.

A "normal" gallery plugin like NextGen may be a better bet for what you want.

Dynamic Content Gallery: Have you read the Configuration Guide and FAQ?