Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #150028
    Frank
    Participant

    Hi there,
    how can I add two custom post types zo my catch flames pro (child) blog?
    Regards,
    Frank

    #150085
    Skandha
    Keymaster

    @wolpertinger: Can you please elaborate what kind of custom post type you want to add?

    Kind Regards,
    Skandha

    #150269
    Frank
    Participant

    Hi Skandha,
    on my blog https://blog.frank-muennich.de I publish diffent kinds of text e.g. political statements, scientific elaborations … which I would like to keep seperated from each other in such a way, that they doent show up in the same places (e,g, the blog, or specific archives – sme author publishing political statements or statistical analyses) and allow for a diffent appearance on the front end using type-specific css.
    Will these hints anwer your question?
    Best regards,
    Frank

    #151075
    Skandha
    Keymaster

    @wolpertinger: Sorry for the late reply. Firstly you will need to create a child theme for this. If you do not know how to create a child theme then you can use Generate Child Theme Plugin.
    Go to => Child Theme Folder => functions.php and add the following Code.

    add_action( 'init', 'create_post_type' );
    function create_post_type() {
        register_post_type( 'deals',
            array(
                'labels' => array(
                    'name' => __( 'Deals' ),
                    'singular_name' => __( 'Deal' )
                ),
            'public' => true,
            'has_archive' => true,
            )
        );
    }

    You can replace deals with the name of your custom post type.
    You will get the custom post type in the admin area. You can add posts to it and display it as an archive page.

    Let me know if this helps you out.
    Kind Regards,
    Skandha

    #151844
    Frank
    Participant

    Hi Skandha,
    works perfectly – thanks a lot
    By now
    Frank

    #151894
    Skandha
    Keymaster

    @wolpertinger: Hello there, I hope I was able to resolve your issue. If it’s not too much trouble, I have a quick request: could you please leave an honest review?
    https://wordpress.org/support/theme/catch-flames/reviews/#new-post
    Your review will help others know what to expect when they’re looking for the support I offer. Even a sentence or two would be hugely appreciated. Thanks, and if there’s anything else at all that I can do to help,
    don’t hesitate to let me know. Have a good day! 🙂

    Kind Regards,
    Skandha

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Custom Post Types’ is closed to new replies.