• Hello, I want to know if it’s possible to create posts with the chapter number and chapter title in its title

    So the post title will be chapter (number): title
    At this point, I only know that I should use custom post type(and fields) but I am not sure what plugin I should use and/or how to make the title have chapter (number): title automatically
    I would like to know if there are plugins that can help me achieve that or what kind of custom post type settings I should do

    Thanks in advance!

Viewing 1 replies (of 1 total)
  • It will be a complex thing to do with the automatic concept.
    if you need an automatic then you’ll have to store an automatic counter and current chapter number in post when a post is created. so when you first create a post you store, 1 as counter and 1 as chapter no, then you create the next post then fetch the old counter value and increment it and store it, and then set incremented value in the post as well.

    Then you’ll have to edit the template file where the title function is used to display the title then you’ll have to fetch the stored chapter no and display it before the title.

    Overall it’s complex and in suggestion, same as writing chapter no in title manually each time you create a new post as you’re storing something in the database. You can’t generate automatic no dynamically on the frontend as the post will be sorted as date, id and etc. and you can’t control automation, also you can set category or tag to post then automation will if you try to use loop increment system.

    So the best thing is write Chapter {NO}: Your chapter title It will help in SEO and the page url will also look create and user friendly.

Viewing 1 replies (of 1 total)
  • The topic ‘Managing posts with chapter number and chapter title’ is closed to new replies.