Wordpress question - Category post segregation

Discussion in 'WordPress' started by AmanDH, Oct 22, 2017.

  1. #1
    Hi all,
    I have a question related to wordpress. What I want to do is create a new post type which I will call "Books". Now I want every single category to have two different things :-
    Category - 1. Posts and 2. Books

    Books will have information related to category just like posts but only different will be they show different and are not posts.

    I wanted to know how can this be done in wordpress ?

    Regards
    AmanDH
     
    AmanDH, Oct 22, 2017 IP
  2. snaroliya

    snaroliya Active Member

    Messages:
    51
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    95
    #2
    Do you want to show the default posts and the new post type "Books" differently?
     
    snaroliya, Oct 22, 2017 IP
  3. AmanDH

    AmanDH Well-Known Member

    Messages:
    315
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    140
    #3
    Yes, I want to show it in two columns where first columns will show books and other will show the posts. I can design those things but first important thing is how can I create new thing like post and link it with category.
     
    AmanDH, Oct 23, 2017 IP
  4. snaroliya

    snaroliya Active Member

    Messages:
    51
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    95
    #4
    Are you looking code for new post type i. e. "Books" If so, you can generate post type from here https://generatewp.com/post-type/
     
    snaroliya, Oct 23, 2017 IP
    AmanDH likes this.
  5. AmanDH

    AmanDH Well-Known Member

    Messages:
    315
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    140
    #5
    Oh, will it also have option to be part of category ?
    This seems cool man, thank you :)
     
    AmanDH, Oct 23, 2017 IP
  6. snaroliya

    snaroliya Active Member

    Messages:
    51
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    95
    #6
    Yes, post types support Taxonomies too, you can use it like category and tags etc.
     
    snaroliya, Oct 23, 2017 IP
  7. AmanDH

    AmanDH Well-Known Member

    Messages:
    315
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    140
    #7
    Thank you very much, any particular article I can read to learn more ?
     
    AmanDH, Oct 23, 2017 IP
  8. snaroliya

    snaroliya Active Member

    Messages:
    51
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    95
    #8
    The best place to learn more about post types is https://codex.wordpress.org/Post_Types
     
    snaroliya, Oct 23, 2017 IP