Create page template for custom post type

General questions pertaining to how certain issues can be resolved
Forum rules
1. No offensive language and no mocking
2. Please do a thorough search before you post something. Trust us, there is a high probability that the question you are asking has been asked previously.
3. No soliciting. You cannot post here soliciting bids for people offer you quotes, or even offer money to people for some work. You will be moderated if you do so. If you are looking for help, please post your request on http://jobs.wordpress.net or http://codepoet.com
4. Please be reasonable. You are getting software and support. For free. Complicated requests from a general purpose theme are not welcome and some volunteers might lose patience with you.
5. Please do your due diligence. If you posted a query and we answered with a link, take the trouble to go through the link contents.
6. Please post with complete information. Requests for help MUST be accompanied with your URL, particularly if you are asking something like "Why am I seeing a blank space?"

Create page template for custom post type

Postby djaneb » 04 May 2012, 18:22

Hello

OBJECTIVE
Landing page the main blog
2 password protected pages _ one includes only posts of custom post type A and the other only posts of custom post type B. These posts do no appear on the landing page.

PROGRESS
I have installed the Custom Post Type plug in and created a post type called suff_gg
I have tried copying various of the existing Suffusion templates (Page of Posts, for example) to edit, hoping to apply that template to a static page. (I do this by following instructions on various tutorials etc).

But I have failed to achieve the desired result. The closest I have got is copying page of posts and editing the id of the post type, but I wasn't sure what else to edit. I ended up successfully applying the template, and the page shows with no error, but it has not posts on it, which leads me to believe some of the other code, which I don't understand, filters out the posts. Here is the page ...

http://www.debsinternetsite.com/testing ... ost-types/

(The rest of the site still has the old structure)

QUESTION
How do I create a page template that looks like the rest of the site that enables me to have only posts from a certain post type?

Many thanks for your help.

Deb
djaneb
 
Posts: 4
Joined: 18 Mar 2012, 15:01

Re: Create page template for custom post type

Postby sayontan » 04 May 2012, 22:05

djaneb wrote:How do I create a page template that looks like the rest of the site that enables me to have only posts from a certain post type?

Really, really easy! Wait for a few days and get 4.2.0 when the theme review admins make it live (it is already approved, but it isn't live yet). There is a new template there called "Custom Post Type Archive", which is meant for this specific scenario.
Sayontan Sinha | http://mynethome.net/blog | http://www.aquoid.com/news
I don't do freelance work (for Suffusion or otherwise), so please don't contact me for quotes or offers.
sayontan
Site Admin
 
Posts: 10159
Joined: 15 Sep 2009, 16:39
Location: Houston, Texas

Re: Create page template for custom post type

Postby djaneb » 04 May 2012, 22:47

Woohoo! That's so great! Many thanks!

Deb
djaneb
 
Posts: 4
Joined: 18 Mar 2012, 15:01


Return to Support Requests

Who is online

Users browsing this forum: crucounty, Google [Bot] and 5 guests

cron