WordPress.org

Support

Support » Plugins and Hacks » Hacks » Changing link from post to page

Changing link from post to page

  • ccavaliere
    Member

    @ccavaliere

    Hello-

    I am trying to send users when they click on the link within the homepage slider to a page that I created. Currently the slider sends the user to a post where the image lives, but i want to change the php. I have been directed to change the function permalink()but im not sure what I have to change it to. Any help?

    <?php if ( $my_query->have_posts() ) : while ( $my_query->have_posts() ) : $my_query->the_post(); ?>
    							<?php $image = get_post_thumb($post->ID,950,350,'bordeaux_slider_image'); ?>
    								<img src="<?php echo $image['src']; ?>" alt="<a href=""<?php">"><b><?php the_title(); ?></b></a><p><?php the_excerpt(); ?></p>" width="950" height="350" />
    
    							<?php endwhile; else: ?>
    							<?php endif; ?>

    [Please post code & markup between backticks or use the code button. Your posted code may now have been permanently damaged by the forum’s parser.]

Viewing 1 replies (of 1 total)
  • ccavaliere
    Member

    @ccavaliere

    UPDATE for some reason the code was left out of the post…

    <?php $image = get_post_thumb($post->ID,950,350,'bordeaux_slider_image'); ?>
    								<img src="<?php echo $image['src']; ?>" alt="<a href=""<?php">"><b><?php the_title(); ?></b></a><p><?php the_excerpt(); ?></p>" width="950" height="350" />

    [Please post code & markup between backticks or use the code button. Your posted code may now have been permanently damaged by the forum’s parser.]

Viewing 1 replies (of 1 total)
  • The topic ‘Changing link from post to page’ is closed to new replies.