+ 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

2nd Aug 2018, 1:20 PM
P1clem
P1clem - avatar
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.
4th Aug 2018, 6:01 PM
Igor Makarsky
Igor Makarsky - avatar
0
please can i get the full code if you don't mind
6th Aug 2018, 11:29 PM
P1clem
P1clem - avatar