Related Post Widget For Blogger?

Ajay Malik <[email protected]> Mon, 8 Jan 2018 07:09:17 -0800 (PST)
Newsgroups gmane.comp.web.blogger.api
Message-ID <[email protected]>
Today, I Try to make a related post widget using blog loop 
here's the code:

<b:section class='main2' id='main2' name='Main2' showaddelement='yes'>

    <b:widget id='Blog2' locked='false' title='Blog Posts' type='Blog'>


        <b:includable id='main' var='top'>

           <b:include name='allposts'/>

        </b:includable>


        <b:includable id='allposts'> <!-- you can remove var="i" -->

            <b:loop var='thisPost' values='data:posts'>

                <h2>

                    <a 
expr:href='data:thisPost.url'><data:thisPost.title/></a>

                </h2>

            </b:loop>

        </b:includable>


    </b:widget>

</b:section>

It show title of recent post on index pages , Then in want to filtered them 
according to label. But this code is not working on single post,  it only 
shows that post title, How to make this also work on signle post too.

-- 
You received this message because you are subscribed to the Google Groups "Blogger Developer Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/bloggerdev.
For more options, visit https://groups.google.com/d/optout.