Support » Fixing WordPress » Changing TextLink PHP to ImageLink PHP

  • I’m completely confused as to the method to insert an image link into my Theme’s current template for our Portfolio page.

    The relevant code is:

    // check if we got posts to display:
    if (have_posts()) :
    
    	while (have_posts()) : the_post();
    	$slider = new avia_slideshow(get_the_ID());
    	$slider->setImageSize('fullsize');
    	$slideHtml = $slider->display();
    ?>
    
    		<div class='post-entry'>
    
    			<div class="entry-content">	
    
    				<div class="eight units alpha min_height_1">
    
    					<?php echo $slideHtml; ?>
    		        	<div class='post_nav extralight-border'>
    						<div class='previous_post_link_align'>
    							<?php previous_post_link('<span class="previous_post_link">← %link </span><span class="post_link_text">'.__('(previous!#!entry)')."</span>"); ?>
    						</div>
    						<div class='next_post_link_align'>
    							<?php next_post_link('<span class="next_post_link"><span class="post_link_text">'.__('(next!#!entry)').'</span> %link →</span>'); ?>
    						</div>
    					</div> <!-- end navigation -->
    				</div>

    An example page is located here:
    http://vroooom2.business-website.com/portfolio-item/alexander-electric/

    The !#! was added by me as an easy way for other people in my company working on this to find the relevant area.

    If anyone has any insight as to how to change the underscored text link to an image link, I’d be very grateful.

    P.S. – Now that I look at it, it’s pulling the next/previous Portfolio entry name from somewhere and making it a text link. I have no idea where I’d even find the code that does this.

  • The topic ‘Changing TextLink PHP to ImageLink PHP’ is closed to new replies.