WordPress.org

Forums

Link to single.php and single_x.php (2 posts)

  1. krusch
    Member
    Posted 6 years ago #

    How can I change this Link:

    <a href="<?php the_permalink() ?>"><?php the_title(); ?></a>

    to link to page single_x.php instead of to single.php?

    I want to change that link in my archiv.php to link to a different design:

    Let's say home.php links to single.php
    and archive.php links to single_x.php

    King regards,
    Felix

  2. MichaelH
    Member
    Posted 6 years ago #

    Take a look at Template Hierarchy to see how WordPress decides what template to use.

    This might be of interest:
    http://www.nathanrice.net/blog/wordpress-single-post-templates/

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags