Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #27684

    I have a post type ‘newsbeitrag’. I have established a blog-page ‘news’ with posts of this type. That works fine

    How can I create a sidebar with a monthly / yearly news-archive, latest news etc.? The available widgets are working only for standard-posts and for portfolio.

    I am desperate for some hints or instructions.




    Hi Günter,

    The archive gets created automatically. Just create one item of the post type newsbeitrag and go to the url of that item which would be … then if you look at the breadcrumbs click on the , the parent , and you will see that an archive page has automatically been created using the archive.php as a template . now if you want to create your own page.

    now if you want to have a custom look to the archive page, you will need to do the following:

    1) Make a copy of archive.php and call it archive-newsbeitrag.php . on bottom of archive.php write

    <?php echo 'TESTING'; ?>

    Now upload the new file, next to archive.php in main theme folder. When you load the archive page , you should see on bottom of the page TESTING

    To modify this page you will need to know php and html or at least be able to hack your way around it, or willing to learn. Otherwise you wont be able to do much else.



    customize that page , you will need to do it yourself with html and php by f

Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘Problems with Custom Post Type’ is closed to new replies.