• I am using custom post types to create product pages for a store. The product pages are pulling their template from the single.php that the individual blog posts are using.

    I would like a unique page template for the product pages. I’ve looked everywhere and haven’t found a solution? Any ideas? It’s probably something dumb and easy like always.

Viewing 4 replies - 1 through 4 (of 4 total)
  • you just make a new single.php template, appropriately named using your custom post type.

    Fo rinstance, I have Products custom post type registered as ve_products

    so a file named single-ve_products.php is used for that

    Thread Starter vectyr

    (@vectyr)

    It seems to have worked. But now it’s throwing an error:

    Catchable fatal error: Object of class WP_Error could not be converted to string in /home/josh/public_html/wp-content/themes/v/functions.php on line 219

    Thread Starter vectyr

    (@vectyr)

    } elseif ( is_single() ) {
          $cat = get_the_category(); $cat = $cat[0];
          echo get_category_parents($cat, TRUE, ' ' . $delimiter . ' ');
          echo $currentBefore;
          the_title();
          echo $currentAfter;

    This is the code where the problem seems to be. It’s the dimox breadcrumbs code that I have in the functions.php file.

    https://www.wongpk.com/2010/09/20/wordpress-breadcrumb-with-custom-post-type/

    here’s some info I found…not sure how helpful, but maybe can get you on the right track

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Custom Post Type Page Template Different than Blog Template’ is closed to new replies.