1728 posts
  • Has been part of the Envato Community for over 4 years
  • Has been a beta tester for an Envato feature
  • Has collected 10+ items on Envato Market
  • Sells items exclusively on Envato Market

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.


709 posts
  • Has referred 10+ members
  • Has sold $10,000+ on Envato Market
  • Has been a beta tester for an Envato feature
  • Has collected 10+ items on Envato Market
+2 more

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


    $wp_query = new WP_Query();
            'posts_per_page' => get_option( 'posts_per_page' ),
            'post_type' => '', /* Name of the post type. */
            'paged' => $paged
    $more = 0;

Helpful Information

  • Please read our community guidelines. Self promotion and discussion of piracy is not allowed.
  • Open a support ticket if you would like specific help with your account, deposits or purchases.
  • Item Support by authors is optional and may vary. Please see the Support tab on each item page.

Most of all, enjoy your time here. Thank you for being a valued Envato community member.

Post Reply

Format your entry with some basic HTML. Read the Full Details, or here is a refresher:

<strong></strong> to make things bold
<em></em> to emphasize
<ul><li> or <ol><li> to make lists
<h3> or <h4> to make headings
<pre></pre> for code blocks
<code></code> for a few words of code
<a></a> for links
<img> to paste in an image (it'll need to be hosted somewhere else though)
<blockquote></blockquote> to quote somebody

:grin: :shocked: :cry: Complete List of Smiley Codes