+ 1
Please how can add related post to site
hello guys i need help on how i can add related post to site, In php site
2 Answers
+ 22
1. You need to add a table to your database, for example, related_post with the following columns: id, post_id, related_post_id.
2. Add a new "Related post id" input field to the "Add post" page.
3. Update post creation logic. Insert a row into the new table.
4. On the "View post" page show related post data using related_post_id.
0
please can i get the full code if you don't mind