Custom Post Type

Hey there,

i tried to get the same template as the "blog" for my custom post types: "Press" and "Wiki".
How can i add the Posttypes to the Betheme loop? Or where i can find the standard/right template?

If im clicking on the Category of a Post Type, there are no results...

I want to have the same Template in my Posttypes like the standard blog.

If i use the template-archives.php, its the wrong layout.
But there is no blog.php like in other Themes...

Where i can find the right Template?
I hope u understand me and can help me

Thanks and have a great weekend
Nils


Comments

  • edited March 2018
    If i add this to the functions.php, it works for the Archive, Tag  and Category pages:

    add_action( 'init', 'cptui_register_my_cpts_presse' );
    function kb_add_post_types_to_loop($query) {
      if (!is_admin()) {
        if ($query->is_main_query()) {
          $query->set('post_type', array('post', 'presse'));
        }
      }
    }

    add_action('pre_get_posts','kb_add_post_types_to_loop');

    -> But all other sites show an 404....
  • Hi,

    What you ask for, requires files customization what in reference to Item Support Policy is not allowed. So if you want to modify files and don't know how, you should contact your web developer. Item Policy says:
    Item support does not include services to modify or extend the item beyond the original features, style, and functionality described on the item page. For customization services that will help you tailor the item to your specific requirements, we recommend contacting the author to see if they privately offer paid customisation services or checking out the great service providers on Envato Studio

    thanks
  • @roesslewanner did you ever get this working?

Sign In or Register to comment.