In my gallery site i want to show other pictures under the current picture (in single post). I seen more codes but it i asks to specify the category, but i dont want want specify the category manually in the code I want the code itself to get the category ID or name.It would be much easier for me if i get full posts instead of post title so that I can display it as in home and category
The question has already been asked and the answer has been posted too,
Add this code inside your single.php after a loop wherever you want to show related post,
It will display related post from the same category with the post excerpt and title , however if want this code to display just the title of related post then remove this line,
|show 6 more comments|
protected by Community♦ Feb 28 at 17:22
This question is protected to prevent "thanks!", "me too!", or spam answers by new users. To answer it, you must have earned at least 10 reputation on this site.