• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

XF 1.5 $thread.reply_count

dethfire

Well-known member
#3
hmmm this is not working for me

<xen:if is="{$thread.reply_count} == 0">
<xen:container var="$head.robots"><meta name="googlebot" content="noindex" /></xen:container>
</xen:if>
 

EQnoble

Well-known member
#4
Check if you have some kind of caching going on, I just tested your code and it adds the noindex right before the end of the head as expected.

Also just for the sake of sanity make sure you are testing this viewing a thread that actually has 0 replies.