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 |
Results tagged with loop
Search options not deleted
user 30656
The core of the WordPress query, the loop offers an easy way to access post information and display it on your website.
0
votes
1
answer
709
views
Custom post-type's pagination not working in category.php
I have this code to the file category.php :
<?php get_header(); ?>
<div id="content">
<div id="all">
<div id="todo">
<?php
$my_query = null;
$paged = (get_query_var('paged')) ? get_query_var('paged' …
0
votes
1
answer
73
views
The normal loop with different styles doesn't work in search.php
This code in the search.php file does not work:
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<?php if( get_post_type() == 'post' ) {?>
<div id="post">
<div id="postimagen"><a …
0
votes
1
answer
91
views
The loop does not show users
I'm trying to show all post made by the author.
Code author.php
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<?php if( get_post_type() == 'post' ) {?>
<?php } if( get_post_ …
1
vote
Accepted
The loop does not show users
You need to add this code to the file functions.php.
function custom_post_author_archive($query) {
if ($query->is_author)
$query->set( 'post_type', array('post-type', 'post') );
remov …