Extra line spaces in loop where IF statements are
-
I’m creating a page to list posts, and I want the category to be shown, then the title-link to the post, then if there is an author to show it, then the date. I have the following code:
[loop type=post category=pr,article orderby=date order=DESC paged=10 query=pg] [if category=pr]PR[/if] [if category=article]Article[/if] [field title-link] [if field=article-author][field article-author][/if] [field date] [/loop] [loopage query=pg]
Before I added in the IF statements, the date properly showed up immediately below the title-link. Now wherever there are IF statements there are empty lines. How do I get it to no create the extra space?
In the code I see the following for each entry:
PR<br /> <br /> <a href="URL">TITLE</a><br /> <br /> DATE<br /> <br />
In the above example the post was in the PR category, but had no author. Thanks.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Extra line spaces in loop where IF statements are’ is closed to new replies.