How to display only custom post types on a template page
-
Hi there,
I made some custom posts and i want to display them with a page template. So I have to place a query_post (‘post_type=custompost’) before the loop.
I copied a template, but i cant find the start of the loop, since it starts with a ‘global $post;’.
Needless to say, i am new to PHP. Is there any way i can define the ‘global $post;’ to a specific, custom post?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘How to display only custom post types on a template page’ is closed to new replies.