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 |
Custom Post Types extend WordPress to support additional content.
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
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 …