1546 posts
  • Bought between 10 and 49 items
  • Envato Studio (Microlancer) Beta Tester
  • Exclusive Author
  • Has been a member for 3-4 years
webdesignerart says

Hi Guys,

I need help in custom post type i have section(in website) for magzine (single-magazine.php) but the problem is in single-magazine.php page we use single post loop. SO is this possible in website magazine section can have totally different look and all posts come from magazine post_type section and when user click on any magazine post then it goes to single-magazine.php page.

I already created magazine custom post_type in Functions.php and also user rewrite slug feature but puzzled if user see magazine page section(in website) the template have to show what i seprately design for magazine section page. And also when user click on any post links in magazine section then single-magazine.php page have to show.

So guys i want to know iz it possible or i have to seperate install wordpress for magazine section.

SOORRYY FOR BAD ENGLISH

707 posts
  • Sold between 10 000 and 50 000 dollars
  • Referred between 10 and 49 users
  • Bought between 10 and 49 items
  • Has been a member for 5-6 years
  • Exclusive Author
  • Envato Studio (Microlancer) Beta Tester
ChillThemes says

You can display all custom post type posts using wp_query. Just create a page template.

Example:

<?php
    $wp_query = new WP_Query();
    $wp_query->query(
    array(
            'posts_per_page' => get_option( 'posts_per_page' ),
            'post_type' => '', /* Name of the post type. */
            'paged' => $paged
        )
    );
    $more = 0;
?>
by
by
by
by
by
by