Podcast #128: We chat with Kent C Dodds about why he loves React and discuss what life was like in the dark days before Git. Listen now.
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
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Favorites infavorites:mine
infavorites:1234
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
Results tagged with Search options user 31057

The core of the WordPress query, the loop offers an easy way to access post information and display it on your website.

0
votes
The correct iteration of the loop is: <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?> and ends here: <?php endwhile; else : ?> <p><?php _e( 'Sorry, no posts matched your … criteria.' ); ?></p> <?php endif; ?> For more details on the loop see https://codex.wordpress.org/The_Loop Also I am not sure if your $counter variable means anything in PHP... $counter += 1; If …
answered Mar 27 '15 by erichmond
0
votes
You should clean it up some more but this will fix your code: <?php get_header(); ?> <div class="posts"><!-- BLOG --> <!-- Shapes on sides --> <div class="shapes_left"> </div> <div class="shapes …
answered Mar 27 '15 by erichmond
0
votes
2answers
Is there a way to get the results of a loop with a filter before the code for the loop is performed in the structure of your code? My markup is something like this: <body> <div> /* can I use a … function to get the results from a loop performed after this point with a filter or hook of some sort */ </div> <div> /* a loop/foreach etc. with results I would also like information for …
asked Jul 18 '12 by erichmond