• Hi there,

    I am working again and again on a way to link some [x] categories posts on a page with its own template.

    * I got two main templates : Hunting and Sports
    ** The default one (single.php) template in Hunting
    *** When I click on read more for a sports link.. I would like to go on my page with the sports template

    I copy/paste the content of single.php on my single_sports.php and when I click on read more, i get a 404..

    Actually, my code looks like this :

    <?php query_posts('showposts=1&category_name="sports"&orderby=rand');?>
    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    <a href="https://mywebsite.com/french/?p=<?php the_ID(); ?>" title="TITLE" id="read_more">Read more</a>
    <?php endwhile; endif; ?>

    Any one could help me or have question about my request?

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Link some post on a specific page/template’ is closed to new replies.