Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
0
votes
1
answer
1k
views
wp_query if have posts show date but not in loop
I have a wp_query set up to show events and I want to show the date if we have posts and if we do not I do not want to show the date.
Here is my code:
<? … echo date('l, F jS'); ?></h3> <!-- this is the date
but I do not want it to echo out three time if
there are three posts!! -->
<?php if ( have_posts() ) :?>
<? …