How to get blog post id in Widget blogger -
in blogger using widget popular post loop value , can post id in popular post custom script
<b:section id='viewed' showaddelement='no'> <b:widget id='popularposts1' locked='true' title='popular posts' type='popularposts'> <b:includable id='main'> <b:loop values='data:posts' var='post'> <div class='smallpost1'> <b:if cond='data:post.thumbnail'> <a expr:href='data:post.href' target='_blank'> <img class='postimage2' expr:src='data:post.thumbnail' height='40' width='40'/> </a> </b:if> <h3> <a expr:href='data:post.href'> <data:post.title/> </a> </h3> <div class='clear'/> </div> </b:loop> <b:include name='quickedit'/> </b:includable> </b:widget> </b:section>
ex: in tag
<b:loop values='data:posts' var='post'>
can in using post id :
<data:post.id/>
thanks suggest
for maybe still interested how fix this:
you need add showaddelement='no'
in <b:widget...>
on line 2
Comments
Post a Comment