- This topic has 5 replies, 2 voices, and was last updated 5 years, 8 months ago by Skandha.
-
AuthorPosts
-
July 20, 2018 at 7:53 pm #150028FrankParticipant
Hi there,
how can I add two custom post types zo my catch flames pro (child) blog?
Regards,
FrankJuly 22, 2018 at 9:49 am #150085SkandhaParticipant@wolpertinger: Can you please elaborate what kind of custom post type you want to add?
Kind Regards,
SkandhaJuly 24, 2018 at 8:41 am #150269FrankParticipantHi 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,
FrankAugust 6, 2018 at 5:18 am #151075SkandhaParticipant@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,
SkandhaAugust 16, 2018 at 11:50 am #151844FrankParticipantHi Skandha,
works perfectly – thanks a lot
By now
FrankAugust 17, 2018 at 12:50 am #151894SkandhaParticipant@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 -
AuthorPosts
- The topic ‘Custom Post Types’ is closed to new replies.