Hi Guys and Gals! I´ve got this site I´m modifiying for a better usage. I´ve made a page template and I´ve made a page called Online Store and there selected the page template i´ve created to be used. On the page i´ve set a shortcode for a plugin which allows me to make product pages for shopping. The online store shows on the page fine. The problem is that when the specific products permalink is clicked it uses the native single.php on my theme, but I want to use a custom single.php postpage i´ve also made. My question is what is the code so when permalink is clicked it goes on the custom single.php page and not the theme´s native single.php? And is this the correct type of a custom single.php page? <?php /* Single Post Template: [Single_2] Description: This part is optional, but helpful for describing the Post Template */ ?> <?php get_header(); ?> <div class="full_page"> <?php if (have_posts()) : ?> <?php while (have_posts()) : the_post(); ?> <div <?php post_class(); ?> id="post-<?php the_ID(); ?>" style="margin-bottom: 30px;"> <div class="p-head"> <h1><?php the_title(); ?></h1> </div> <?php if (function_exists('the_tags')) { ?> <?php the_tags('<div class="p-det"><ul><li class="p-det-tag">Tags: ', ', ', '</li></ul></div>'); ?> <?php } ?> </div> <?php endwhile; ?> <?php include("nav.php"); ?> <?php else : ?> <?php include("404.php"); ?> <?php endif; ?> <?php get_footer_no_sidebar(); ?> PHP: can it be done at all? Thanks in advance!
Ok, if I understood that correctly, all you need to do is name your custom template correctly. Find the id for your page. For example, if your page has an id of "4", name your custom template page-4.php