How To Hide Posts on Homepage from a Specific Label


#1

Hello Everyone…!
Today I Want To Hide Some From a Specific Label from My Blog’s Homepage.
I Get a code to add before </b:skin>

    <b:if cond='data:blog.url == ... >
    #YOUR POST ID {display:none}
    </b:if>

But It’s Not Working For Me…
Please Help me…

Note: I Want A Simple Code Like This Above Code

will wait for your kind answer @Nitishk, @Nafees, @Mohammad and @Shivansh
Thanks


#2

Try This :link: http://www.mybloggerbuzz.com/2014/08/how-to-hide-specific-posts-from.html

Use the Big Code Provided And If It Not Works Then Ask Me For Help :smile:


#3

Thanks @Nitishk For Reply
But No One Method Is Working.

Here Is My Blog Link


#4

Now Go to Template >> Edit HTML

Inside the blogger code editor find out this below tag

<b:include data='post' name='post'/>

Now replace above code with below code

<b:if cond='data:blog.url == data:blog.homepageUrl'>
    <b:loop values='data:post.labels' var='label'>
        <b:if cond='data:label.name != &quot;LABEL&quot;'>
            <b:include data='post' name='post' />
        </b:if>
    </b:loop>
    <b:else/>
    <b:include data='post' name='post' />
</b:if>

you can change LABEL to your label name

If you want to use Multiple Labels in Homepage use this code

<b:if cond='data:blog.url == data:blog.homepageUrl'>
    <b:loop values='data:post.labels' var='label'>
        <b:if cond='data:label.name != &quot;FIRST LABEL&quot;'>
            <b:include data='post' name='post' />
        </b:if>
        <b:if cond='data:label.name != &quot;SECOND LABEL&quot;'>
            <b:include data='post' name='post' />
        </b:if>
    </b:loop>
    <b:else/>
    <b:include data='post' name='post' />
</b:if>

Change your FIRST LABEL and SECOND LABEL to your label

Hope this will work


#5

It’s Not Working :frowning: Posts Gone Wrong in Body Area After Adding This Code.