Jump to content

noob question: inserting slideshow instead a single image


Recommended Posts

Hello all,

 

I am fairly new to the world of php. I have been trying to modify a wordpress theme which has got a picture associated with it. I am trying to change that picture to a slideshow using the NextGen gallery plugin.

 

Attached herewith is the theme code and also the slidshow code.

 

<?php if ( get_post_meta($post->ID, 'Image', true) ) { ?>

 

 

 

<a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><img src="<?php echo get_post_meta($post->ID, "Image", true); ?>" title="<?php the_title(); ?>" alt="<?php the_title(); ?> <?php _e('thumbnail'); ?>" align="top" border="0" style="padding: 0px; margin: 0px 0px 0px 0px;width: 412px; height: 232px;"/></a>

 

 

 

<?php } else { ?>

 

 

 

<a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><img src="<?php bloginfo('template_directory'); ?>/images/default.gif" title="<?php the_title(); ?>" alt="<?php the_title(); ?>" align="top" border="0" style="padding: 0px; margin: 0px 0px 0px 0px;width: 412px; height: 232px;"/></a>

 

 

 

<?php } ?>

 

Insted of the default.gif I wish a slideshow to be seen and the code I need to insert is "[slideshow id=1]".

 

Some of you may even laugh at how simple this may be but I have been having some trouble with it. Any help is appreciated. Thanks in advance.

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.