0

I'm making a movie database and need to have multiple pages per post: details, cast, recommendations, reviews (something like IMDb). I would prefer to not use any plugins if possible. I'm not new to wordpress but I don't have any clue how to do this. I was looking for help on the internet but every article was about splitting long posts using pagination. So the question is how to make multiple pages per post?

2 Answers 2

2

You can use a custom post type, e.g. movies and then you can have some rewrite rule which will basically render something like this movies/movieId/ratings to movies/movieId/?page=ratings.

So now you can use $_GET['page'] to check what data you have to show.

How to rewrite the slug in WordPress? Google it.

Check this answer for rewrite rules.

0

If I'm understanding you correctly, and you want a single post to contain the data for multiple pages of content. Then maybe use tabs. If your theme is bootstrap based than this is super easy.

https://mdbootstrap.com/components/tabs/

1
  • I was thinking about it but considering the amount of elements each tab would contain and ux it's not a good option. The most important thing is that i need individual url's for each page, so tabs are definitely out
    – SleepyAsh
    Commented Jul 12, 2017 at 17:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.