Multiple Loop Problem In Single.php (2 posts)

  1. cyzee
    Posted 4 years ago #

    I'm trying to show recent articles in my single.php by including a recent-post.php file

    The code in recent-post.php is as follows:

    [code moderated - please use the pastebin for any code over ten lines long]

    The problem i'm facing that when i open first 3 recent articles, It shows me first 3 recent article titles too. I dont want to duplicate the post and the title.

    Please help. Tried a lot with multiple loop section but this code is there in another file not in single.php . I tried making post id as global too.

    Thanks in advance.

  2. cyzee
    Posted 4 years ago #

    The code in recent-post.php at http://pastebin.com/1PXrTnLW

Topic Closed

This topic has been closed to new replies.

About this Topic