• dannytheslide

    (@dannytheslide)


    Hello! I’m having an issue in my website, . I inherited this site when I accepted the job and I’m learning on the fly. I need to attach page links to the icons on http://luxecre.com/buildings/ that are different than what is currently there. I opened up the template for this page and I got completely lost. I don’t want to change anything for fear of breaking it. any help would be appreciated.
    The code: `<?php
    /**
    * @package WordPress
    * @subpackage Klassio Theme
    * Template Name: Buildings Page
    */
    ?>
    <?php get_header(); ?>
    <?php
    if ( have_posts() ) :
    while ( have_posts() ) : the_post();
    // Your loop code
    endwhile;
    else :
    echo wpautop( ‘Sorry, no posts were found’ );
    endif;
    ?>

    <div id=”content-wrapper” class=”row content1″>
    <div class=”twelve columns main-part”>
    <?php the_content(); ?>

    <div style=”clear:both;”></div>

    <h1 class=”entry-title”>MIAMI BUILDINGS</h1>
    <p>Miami’s patchwork of colorful neighborhoods makes it the perfect place to live and work. In these pages, we present to you some of our favorite neighborhoods, and some of our favorite things to do. Enjoy a visual experience meant to bring Miami to you!</p>

    <ul class=”ul1″>
    <?php
    //get custom post type === > Slides
    $args = array(
    ‘post_type’ =>’area’,
    ‘numberposts’ => -1,
    ‘order’ => ‘ASC’,

    );
    $slides = get_posts($args);
    ?>
    <?php foreach($slides as $post) : setup_postdata($post); ?>

    <li><a href=”/2063-2/?value=<?php the_id() ?>”><?php the_post_thumbnail() ?><h5><?php the_title() ?></h5></a></li>
    <?php endforeach; wp_reset_postdata(); ?>
    </ul>

    </div>
    <!– /entry –>
    </div>
    <!– /post –>

    <?php get_footer(); ?> `

    I need to replace links with new ones I created. for example, Miami beach goes to
    http://luxecre.com/buildings/2063-2/?value=2093
    When I need it to go to:
    http://luxecre.com/buildings/available-buildings-miami-beach/

    any help would be appreciated!

  • The topic ‘Need to change page template to include links to other pages’ is closed to new replies.