Jump to content
Sign in to follow this  
torbjorn_s

Custom Page Template for single Custom Post Type (layout code in template file)

Recommended Posts

torbjorn_s    0
torbjorn_s

Hi I cant provide a Site URL because i develop with MAMP on my local machine. Sorry for that. I have one CPT called products and a taxonomy called 'product_categorys'. I have created my own section so i can loop out all CPT in a selected category on a page where the section is active. The content, image and excerpt it displayed following the code in my section. It??s working great. When i click on one post the post displays on a single page just as a regular 'single-blog-post'. Like mydomain.com/products/product1/ Now i want to control the styling of my post type when the single page is displayed. How can i style the single page so it spits out images, content, title as i want? This post dosent apply any more. Correct? www.pagelines.com/forum/discussion/12311/how-to-make-custom-page-templates


Buildning WordPress sites and setting up Google Apps for my clients.

www.twoway.se

towoway-logo-xsmall-transparent.png

Share this post


Link to post
Share on other sites
Rob    547
Rob
The link is for PlatformPro, and still applicable to that, but not for PageLines Framework. You may need the assistance of one of our professionals for this customization. http://www.pagelines.com/pros You could use the Action Map together with PageLines Customize, Base and other components we provide to help make the customization easier, but when it comes to getting elements to show... like images, text, etc from a custom post type and taxonomy... I've only had experience with plugins and they work. I use Custom Press and Easy Content Types in different parts of my site.

Former PageLines Moderator, Food Expert and Raconteur

Share this post


Link to post
Share on other sites
torbjorn_s    0
torbjorn_s
The question is quite easy really. How do i create a template similar to single-products.php in for example twentyeleven theme that i can customize? If this is the wrong way to do it please give a hint how to do it instead.

Buildning WordPress sites and setting up Google Apps for my clients.

www.twoway.se

towoway-logo-xsmall-transparent.png

Share this post


Link to post
Share on other sites
torbjorn_s    0
torbjorn_s
My bad. Created single-products.php in my child theme and got it working. The only drawback is that the html structure is different in my template.

Buildning WordPress sites and setting up Google Apps for my clients.

www.twoway.se

towoway-logo-xsmall-transparent.png

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×