WordPress.org

Ready to get started?Download WordPress

Forums

Changing link from post to page (2 posts)

  1. ccavaliere
    Member
    Posted 1 year ago #

    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.]

  2. ccavaliere
    Member
    Posted 1 year ago #

    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.]

Topic Closed

This topic has been closed to new replies.

About this Topic