Hide Posts With A S...
 
Share:

Hide Posts With A Specific Tag In Blogger  

  RSS
Cenk
 Cenk
(@cenk)
Member Moderator

One of the problems for users of Blogger is this: the visibility of the article being able to intervene. To open it up a bit, go into the control panel and we want to keep out of the texts of the posts under the specific tag we are unable to intervene. But now with the method I'm about to tell you, we can manage it.
The first code layout set up. After that, there's a note a few important. Go to the template designer by following these steps. In The Control Panel "Template" Edit HTML " Go On. Output codes across your blog. Expand Widget Templates check box and locate the following code before the operation after this.
<b:include data='post' name='post'/>
Select the code that you found, and paste the following code instead.
<!-- cloaking content code start -->
<b:if cond='data:post.labels == ""'>
<b:include data='post' name='post'/>
</b:if>
<b:loop values='data:post.labels' var='label'>
<b:if cond='data:label.isLast'>
<b:if cond='data:label.name != "hidden content"'>
<b:include data='post' name='post'/>
<b:else/>
<b:if cond='data:blog.page type = "item"'>
<b:include data='post' name='post'/>
</b:if>
</b:if>
</b:if>
</b:loop>
<!-- plant a code to hide content -->
Save after you have finished this process.
Now I mentioned at the beginning of the post a few important note. I wrote the word red and bold font to posts with hidden content we want to hide us we need to give labels. So if you have a post with this tag will appear on the blog. At the same time on the archive page and tag page will be seen. Just on your own page will appear.
The most important part: the labels given to the blogger's posts in alphabetical order as standard lists. If in your writings, you may experience a problem if you use more than one tag. So, as follows: for example, a post on Alpha, Beta, Delta and Alpha tag posts with the tags you made for not showing you the process I described here. The process type appears in your state. Because a label in the code that I mentioned above where it needs to be entered in alphabetical order at the end of your posts so you need to enter the tag at the end. In the tag because blogger is based on that.
It can be difficult to understand the last paragraph. I've thought for about 5 minutes while writing. A little complicated, but what you're doing will be worth it.
Before entering the first code from the pictures I have shown below. After you enter the code second.
Envato send in the second picture in the first picture with the label is disappearing.

Quote
Posted : 16/01/2020 5:21 pm
Share:

Please Login or Register