To applay this method, edit your blogger sites XML template (be sure to back it up first!), and click "Expand Widget Templates". Now look for the line:
<b:loop values='data:posts' var='post'>
And find the matching </b:loop> tag.
Replace them and everything between them with the following code:
<b:loop values='data:posts' var='post'>
<b:if cond='data:blog.url == data:blog.homepageUrl'>
<b:if cond='data:post.labels'>
<b:loop values='data:post.labels' var='label'>
<b:if cond='data:label.isLast == "true"'>
<b:if cond='data:label.name != "Label_To_Filter">
<b:include data='post' name='printPosts'/>
</b:if>
</b:if>
</b:loop>
</b:if>
<b:else/>
<b:include data='post' name='printPosts'/>
</b:if>
</b:loop>
Now look for the last </b:includable> tag you can find, and paste this code directly after it:
<b:includable id='printPosts' var='post'>
<b:if cond='data:post.dateHeader'>
<h2 class='date-header'>
<data:post.dateHeader/>
</h2>
</b:if>
<b:include data='post' name='post'/>
<b:if cond='data:blog.pageType == "item"'>
<b:include data='post' name='comments'/>
</b:if>
</b:includable>
Note that this code has a few bugs:
- Posts with no label will not be displayed on the main page.
- The filtered label must be the last label of a filtered post.
- If all your recent stories belong to the filtered category, your blog may appear empty.
I consider these "Features" as they suit my need over at www.luxphile.com - preventing any of my Texture labeled posts from showing up on the main page, and also hiding unlabeled "Blog this" posts from Flickr.
Hey man, this was a lifesaver. I used a modified version of it to make two columns of posts on the main page. The left column has the "left" tag and so on.
ReplyDeleteHello...
DeleteDear Applicant, I am Mr.Ben Dean Global Loan Film LTD.. We are an international loan firm. It a financial opportunity at your door step We provide Business and personal loans etc. as long as it concerns financial assistance..We are certified, trustworthy, reliable, efficient, fast and dynamic. And a Co-operate Financier For Real Estate And Any Kinds Of Business Financing Apply today and you will get a loan from us..
* It a world of happiness with us bring back those joy of yours by applying for a loan with us today...
All these plans and more, contact us now by email for more info.. (globalloanfilm@gmail.com)
Giving your world a meaning.
Filtering Blogger Posts by Labels on Homepage
ReplyDeleteI'm looking for something similar, but in the other direction: to only show posts with a certain combination of labels on the home page, eg: "question" + "featured".... I guess that would look something like this? (Very new to blogger customization - today, actually ; )
b:loop values='data:posts' var='post'
b:if cond='data:blog.url == data:blog.homepageUrl'
b:if cond='data:post.labels'
b:loop values='data:post.labels' var='label'
b:if cond='data:label.name = "Question"
b:if cond='data:label.name = "Featured"
b:include data='post' name='printPosts'/
/b:if
/b:if
/b:loop
/b:if
/b:if
/b:loop
Hi, I'm hoping you could help me. I would love to make this work on my blog, but when I try to save the template edits, I get this message:
ReplyDeleteXML error message: The value of attribute "cond" associated with an element type "null" must not contain the '<' character.
Not sure what it means. I am using one of the new blogger standard templates with some customizations (background, widgets, bannner).
Any advice would be really appreciated!!
Thanks!
I get the same error message as tupelodogg. Doesn't work.
ReplyDeleteIn case tupelodogg and motmaitre are still working with this the error is the result of a missing apostrophe. In the first block of code
ReplyDeleteAh, it removed the code. Anyway the line with 'Label_to_Filter' in red, at the end of that, between the double quotes and the greater than sign should be a single quote
ReplyDelete@Economic Perspectives From Kansas City - That helped so much, because I was getting that same error.
ReplyDeleteHowever, now nothing is showing up and I only have one post in that "filtered" category so it's not like I have them all with it.
Not sure what went wrong here...
SEO Domain Names
In case tupelodogg and motmaitre are still working with this the error is the result of a missing apostrophe. In the first block of code
ReplyDeletekapıda ödemeli alışveriş
should i replace all codes with or replace the first block only? coz i find several codes start with
ReplyDelete*with b:loop values='data:posts' var='post'
DeleteI am getting this error:Error parsing XML, line 2320, column 2: The value of attribute "cond" associated with an element type "b:if" must not contain the '<' character.
ReplyDeletePlease help!
Same here!
DeleteIs there any alternative of this as of now.. not working on me..
ReplyDeletePlease Help
JelBee.com
I just gave this a shot, and now no posts are visible on my Home page or on my link pages. :(
ReplyDeleteMe too...
DeleteThis comment has been removed by the author.
ReplyDeleteWoops that comment got messed up I pasted it here check it out:
ReplyDeletehttp://justpaste.it/ftc8
Thanks a lot for this! I couldn't get the code from the original post to work but your code worked on the first try. Really appreciate it.
DeleteOMG, thanks a lot Stunna, i was searching for this code more than a month, and just your, just your code really works without destroy my template.. really thanks
DeleteThanks you very much. I applied on my blog.
ReplyDeleteCan you help me pls, I want to filter more than one label
ReplyDelete
ReplyDeleteDo you need a quick long or short term loan with a relatively low interest rate as low as 3%? We offer business loan, personal loan, home loan, auto loan,student loan, debt consolidation loan e.t.c. no matter your credit score. We are guaranteed in giving out financial services to our numerous clients all over world. With our flexible lending packages, loans can be processed and transferred to the borrower within the shortest time possible, contact our specialist for advice and finance planning. If you need a quick loan contact us via Email: williamsmr504@gmail.com
http://bantalsilikon01.blogspot.com/
ReplyDeletehttp://bantalsilikon01.blogspot.com/
http://bantalsilikon01.blogspot.com/
http://bantalsilikon01.blogspot.com/
http://bantalsilikon01.blogspot.com/
http://bantalsilikon01.blogspot.com/
http://bantalsilikon01.blogspot.com/
http://bantalsilikon01.blogspot.com/
http://bantalsilikon01.blogspot.com/
http://bantalsilikon01.blogspot.com/
http://bantalsilikon01.blogspot.com/
http://bantalsilikon01.blogspot.com/
sangkar
jual
sangkar
jual
sangkar
jual
jual sangkar
jual sangkar
jual sangkar
jual sangkar
jual sangkar
jual sangkar
jual sangkar
jual sangkar
jual sangkar
jual sangkar
jual sangkar
cd anne jelita brenda anne caca tasya ruth
bantal web bantal bantal silikon pembicara hellow
bumbu bumbu bumbu bumbu bumbu distro distro
BENEFITS GIVEN TO NEW
ReplyDeleteMEMBERS WHO WILL JOIN
FREEMASON & ILLUMINATI.
A
1.Cash Reward of USD $
980,000
2.A New Sleek Dream CAR
valued at USD $850,000
3.A Dream House bought in the
country of your own choice
One Month holiday (fully
paid) to your dream tourist
destination.
One year Golf Membership
package
4.A V.I.P treatment in all
Airports in the World
5.A total Lifestyle change
Access to Bohemian Grove
One Month booked
Appointment with Top 5
world Leaders and Top 5
Celebrities in the World.
call this number to join +2348134548904 or email on illuminatiorderworlwide@gmail.com
Are you in need of a loan? Do you want to pay off your bills? Do you want to be financially stable? All you have to do is to contact us for more information on how to get started and get the loan you desire. This offer is open to all that will be able to repay back in due time. Note-that repayment time frame is negotiable and at interest rate of 3% just email us (urgentloan22@gmail.com)
ReplyDeleteI am posting this AD as part of my promises to GT LOANS 48. kindly contact them today for a loan via email: gtloans48@gmail.com Company Mobile number: text 1 (802)851-7538.
ReplyDelete
ReplyDeleteBandar poker Terpercaya
Bandar poker Terpercaya
Bandar poker Terpercaya
Bandar poker Terpercaya
Bandar poker Terpercaya
Bandar poker Terpercaya
Dewacintaqq
Dewacintaqq.com
Dewa cintaqq
Poker Online
Domino 99
BandarQ
link alternatif Dewacintaqq
Daftar Dewacintaqq
Bandar poker Terpercaya
dewacintaqq
dewacintaqq.com
dewa cintaqq
Cinta
daftar dewacintaqq
link alternatif dewacintaqq
Bandar poker Terpercaya
Bandar poker Terpercaya
SITUS TOGEL ONLINE
Situs Togel Hongkong
Situs Togel Singapore
Bandar poker terpercaya
Daftar Dominohalo
http://45.76.123.180/?ref=Nisa93
Bandar poker terpercaya
Daftar twinpoker88
http://149.28.170.64/?ref=twinpoker21
Bandar poker terpercaya
Daftar Delimapoker
http://45.76.112.124/?ref=nisa2122
Bandar poker terpercaya
Daftar Papadomino
DewacintaQQ
link alternatif Dewacintaqq
Deposit
Deposit dewacintaqq
Poker Indonesia
Poker Online Indonesia
Bandar QQ
Agen Ceme Online
Daftar Situs Poker
Poker Online Terpercaya
Judi Poker
Poker Online Uang Asli
Poker Uang Asli
Situs Poker Online
Agen Poker
Poker88
Capsa Susun Online
daftar idn poker
idnpoker
bigceme
ceme
ceme online
bandar ceme
idn poker
Idnplay
idn play
poker
poker idn
agen poker online
poker online
situs poker online
judi online
situs judi online
Papadomino
ReplyDeleteDelimapoker
Twinpoker88
Dominohalo
Dewacintaqq
dewacintaqq.
Bandar poker terpercaya
situs judi online
judi online
situs poker online
poker online
dominoqq
domino99
bandarq
-----------------------------------------------------------------------------
Bandarq online terpercaya
Delimapoker situs resmi daftar judi online
bandar66
sakong
capsa
domino99
aduq uang asli qq online domino QQ
bandarq,judi online
bandar poker
qq online
---------------------------------------------------------------------------------
Bandar poker terpercaya
judi online
situs judi online
poker online
dominoqq
bandarqq
bandar poker
bandarq
sakong
aduq
capsa susun
------------------------------------------------------------------------------------
Bandar poker terpercaya
judi poker online
bandar poker online
judi online
poker online
dominoqq
situs judi online
situs poker online
------------------------------------------------------------------------------------
Bandar poker terpercaya
Poker Indonesia
Poker Online Indonesia
Agen Ceme Online
Daftar Situs Poker
Poker Online Terpercaya
Judi Poker
Poker Online Uang Asli
Poker Uang Asli
Situs Poker Online
Agen Poker
Situs Judi Online Terpercaya
bandar poker
situs judi
poker online
ceme online
bandar ceme
situs poker
bandar judi
poker idn
judi poker
judi online
agen judi
bandar judi
poker idn
agen poker
idn poker
Situs Judi Poker Online
DominoQQ IDN POKER
Agen judi kartu deposit uang asli pkv games
poker online
dominoqq
bandarqq
bandar poker
bandarq
sakong
aduq
capsa susun
Perang bacarat
papadomino
ReplyDeletepapadomino.com
papa domino
daftar papadomino
link alternatif papadomino
http://45.32.190.103/?ref=vivi293
papadomino
papadomino.com
papa domino
daftar papadomino
link alternatif papadomino
delimapoker
delimapoker.com
delima poker
daftar delimapoker
link alternatif delimapoker
http://45.76.112.124/?ref=nisa2122
delimapoker
delimapoker.com
delima poker
daftar delimapoker
link alternatif delimapoker
twinpoker88
twin poker88
twinpoker88.com
daftar delimapoker
Link alternatif twinpoker88
http://149.28.170.64/?ref=twinpoker21
twinpoker88
twin poker88
twinpoker88.com
daftar delimapoker
Link alternatif twinpoker88
dominohalo
dominohalo.com
domino halo
daftar dominohalo
link alternatif dominohalo
http://45.76.123.180/?ref=Nisa93
dominohalo
dominohalo.com
domino halo
daftar dominohalo
link alternatif dominohalo
dewacintaqq
dewacintaqq.com
dewa cintaqq
daftar dewacintaqq
link alternatif dewacintaqq
Good day, here comes an easy way to become a member of the world famous {Illuminati} brotherhood. For the working class, business men / women, artists, politicians who want to be bigger, more powerful and more influential in the world, join us in becoming one of our official members today. You will be given an ideal opportunity to visit the Illuminati circle after you complete the registration, no sacrifice or human life is needed, the Illuminati brotherhood brings protection, power, wealth and fame in life. You have full access to eradicate the poverty of your generation. Only an existing member of the Illuminati circle has the authority to introduce any member to the circle. So before contacting us, You must be 18 years or older and once you become a member you will be entitled to all benefits for the rest of your life. So if you are ready to become a member, sign up for the official Illuminati WhatsApp [+2348110562645] Email (Illuminatitemple395@gmail.com
ReplyDeleteMaybe because you've not met the right person to help you join Illuminati Brotherhood or you have the benefit of doubt that Illuminati Brotherhood is not real, hear me now, this testimony is for you.
ReplyDelete8 years ago, I happened to fall countless victim of scam but I didn't give up until luck may have it, I came across a genuine member of the Illuminati Brotherhood who assisted me through in the process of joining Illuminati brotherhood. I'm a proud member of the Illuminati Brotherhood and I'm also willing to render help to whosoever is willing to join the Illuminati Brotherhood. The good news is, Registration is free for new members that want to join.
Do you desire to become a Warlock, Vampire or a werewolf then simply follow up with the contact info on this testimony because the Illuminati Organization is a Society that actualize it's members dreams and wishes no matter how impossible it sounds.
Are you looking for fame, protection or wealth then do yourself good and join Illuminati Brotherhood so you can receive your benefits to build the life of your dream. Simply WhatsApp/Message or Call +1 (202) 750-0111 or email churchofilluminatiinitiation@gmail.com.
Good luck as you apply to join the Illuminati Brotherhood free of charge.
ATTENTION TO ALL, ILLUMINATI HAS BECOME WHAT PEOPLE IN DIFFERENT COUNTRY USE TO MAKE MONEY INSTEAD OF HELPING THE POOR THEY NOW TAKE FROM THE POOR BROTHERS AND SISTERS OUT THERE WHO ARE WILLING TO JOIN THIS ORGANIZATION SHOULD BE AWARE OF WHO THEY CONTACT BEFORE SENDING YOUR INFORMATION TO ANY BODY YOU MUST HAVE TO BE CAREFUL BECAUSE WE ARE GETTING SO MANY CONPLAIN FROM NEW MEMBERS I KNOW HOW I SUFFERED BEFORE JOINING THIS ORGANIZATION DONT GIVE UP AM HERE TO HELP THE POOR,THE TALENTED,THE BUSINESS MEN AND WOMEN,TO REACH THEIR GOALS SO FOR MORE INFORMATION ON HOW TO JOIN CALL this number OR WHATSAPP him ON SAME NUMBER also +1 (202) 750-0111 YOU CAN STILL SEND him MESSAGES ON THIS EMAIL
ReplyDeleteinitiationlodgeofilluminati@gmail.com