How to load Custom Post Types in a new Blog Template

MarcoA
14 Posts
MarcoA posted this 26 June 2017

Hi,

I have created a new blog template for a Custom Post Type.
How can I load the Custom Post Type Post in Themler so I can design it properly?
I only see the normal blog entries in Themler (WP Core). But not the Custom Post Type Post that I have created.

Hi, I have created a new blog template for a Custom Post Type. How can I load the Custom Post Type Post in Themler so I can design it properly? I only see the normal blog entries in Themler (WP Core). But not the Custom Post Type Post that I have created.

Last edited 26 June 2017 by MarcoA

Vote to pay developers attention to this features or issue.
10 Comments
Order By: Standard | Newest
Support Team
Support Team posted this 26 June 2017

Hi,

In case of blog page for custom post type and in case of single custom post type you should create Custom Templates in Themler:

http://answers.themler.com/articles/9466/how-to-create-and-use-custom-templates

Of you mean that you do not see custom posts in the lists of Posts and Pages in Themler?

Thank you,
Olivia

Hi, In case of blog page for custom post type and in case of single custom post type you should create **Custom Templates** in Themler: http://answers.themler.com/articles/9466/how-to-create-and-use-custom-templates Of you mean that you do not see custom posts in the lists of Posts and Pages in Themler? Thank you, Olivia

Last edited 26 June 2017 by Support Team

MarcoA
14 Posts
MarcoA posted this 26 June 2017

The second, I don't see the custom post in the list of posts.

The second, I don't see the custom post in the list of posts.
Stagger Lee
1833 Posts
Stagger Lee posted this 27 June 2017

archive-{post_type}.php

archive-mycustomposttype.php

Make one new custom template in Themler, and adapt (slug) name to WP rules.
Then in menu just add one new Item and manually put link to your customk post type. It is all.

**archive-{post_type}.php** **archive-mycustomposttype.php** Make one new custom template in Themler, and adapt (slug) name to WP rules. Then in menu just add one new Item and manually put link to your customk post type. It is all.
Support Team
Support Team posted this 28 June 2017

Hi,

The second, I don't see the custom post in the list of posts.

This is behavour by default. Themler Posts and Pages lists outputs only native WP posts and pages. For othet post types please use the solution with menu items. Also, each list can be opened in Themler by right click >> Open Link in the theme preview area.

Thank you,
Olivia

Hi, > The second, I don't see the custom post in the list of posts. This is behavour by default. Themler Posts and Pages lists outputs only native WP posts and pages. For othet post types please use the solution with menu items. Also, each list can be opened in Themler by right click >> Open Link in the theme preview area. Thank you, Olivia
MarcoA
14 Posts
MarcoA posted this 01 July 2017

Thank you for your reply, but I can not figure it out. Sorry!
Could you make some screendumps ...?

Thank you for your reply, but I can not figure it out. Sorry! Could you make some screendumps ...?
MarcoA
14 Posts
MarcoA posted this 01 July 2017

I have copied the BLOG template and called WORKING PAPERS.
That's also the Custom TYPE (slug = working_papers)

But the BLOG templates and the WORKIN PAPERS template are both displayed by HOME.PHP.

In the root I find in templates.php
<? php theme_register_template ('blog', 'working papers', 'templates blog_3.php');?>

Do I have to use blog_3.php for archive-working_papers.php?

I have copied the BLOG template and called WORKING PAPERS. That's also the Custom TYPE (slug = working_papers) But the BLOG templates and the WORKIN PAPERS template are both displayed by HOME.PHP. In the root I find in templates.php &lt;? php theme_register_template (&#39;blog&#39;, &#39;working papers&#39;, &#39;templates blog_3.php&#39;);?&gt; Do I have to use blog_3.php for archive-working_papers.php?
MarcoA
14 Posts
MarcoA posted this 04 July 2017

Can Someone please help me with this?

Can Someone please help me with this?
Support Team
Support Team posted this 04 July 2017

Hi,

I have copied the BLOG template and called WORKING PAPERS.

The name of the template does not mean nothing, It just static title, like a name of the theme.

The article I provided describes Custom Templates (the last part):
http://answers.themler.com/articles/9466/how-to-create-and-use-custom-templates

This type of the templates can be used to create template for content types with specific slug. At the very bottom of the page is a very useful link to the WP templates hierarchy:
http://codex.wordpress.org/images/9/96/wp-template-hierarchy.jpg

For example, you have custom post type with working_papers slug. You need a template for single posts and a template for archive page:

  • Single Post template file file should be called: single-working_papers.php
  • Archive template should be called as archive-working_papers.php

Thank you,
Olivia

Hi, > I have copied the BLOG template and called WORKING PAPERS. The name of the template does not mean nothing, It just static title, like a name of the theme. The article I provided describes Custom Templates (the last part): http://answers.themler.com/articles/9466/how-to-create-and-use-custom-templates This type of the templates can be used to create template for content types with specific slug. At the very bottom of the page is a very useful link to the WP templates hierarchy: http://codex.wordpress.org/images/9/96/wp-template-hierarchy.jpg For example, you have custom post type with `working_papers` slug. You need a template for single posts and a template for archive page: - Single Post template file file should be called: `single-working_papers.php` - Archive template should be called as `archive-working_papers.php` Thank you, Olivia
MarcoA
14 Posts
MarcoA posted this 06 July 2017

Thanks!

Thanks!
Support Team
Support Team posted this 06 July 2017

You're welcome!
Please let us know if you have any further questions.

You're welcome! Please let us know if you have any further questions.
You must log in or register to leave comments