I am facing serious difficulties in solving a problem in creating a template that should be simple to solve, but it is already consuming me a lot of time without reaching a solution.
It happens that I created a XHTML Strict template from scratch to use in a blog with two standard DIVs (id="div-1" and id="div-2") in the form of two columns that occupy, 50% of the screen.
In the% main% of the homepage, which is within "div-1", all published posts are displayed normally, from the most recent to the oldest. For this, I used the following code:
<div id="div-1">
<b:section id='main'>
<b:widget id='Blog1' locked='true' title='Todas as postagens' type='Blog'>
</b:widget>
</b:section>
<div>
So far so good. It turns out that in "div-2", I want to ONLY display the posts with a specific tag , in this case "News".
For this I tried to use the following code:
<div id="div-2">
<b:section id='noticias'>
<b:widget id='Blog2' locked='true' title='Notícias' type='Blog'>
<b:includable id='main2'>
<b:if cond='data:label.name == "Notícias"'>
<data:content/>
</b:if>
</b:includable>
</b:widget>
</b:section>
<div>
The above code even displays the posts, but just like "div-1". Even by reviewing the code I can not see where the error is that prevents the posts from being displayed ONLY with the bullet "News".
Any help is welcome, because all that is missing is for me to finish the blog and I've been trying to solve this for days without success.