Tagged Questions
0
votes
1answer
22 views
List post only under the category, exclude child category content
I wanted to list posts which are directly under a category and not inside the "sub category". In other words, I want to hide all the posts which are from "Sub Category" in the Parent category view.
...
0
votes
1answer
52 views
display only parent replies count in index.php
Currently my posts display the total count of comments (i.e both replies and sub-comments).
I want to display only the number of reply count in my index.php (and not comments for a reply) for each ...
4
votes
1answer
112 views
How can I save an array from a random post sequence for later use?
I'm building a random workout generator on Wordpress to help with my fitness, and am stuck at saving random post arrays for later reference.
I'll explain.
The generator should work in two main ...
0
votes
2answers
208 views
Change the way wordpress outputs images or image galleries
The title is the short version of the question.
Here's what I need in more details...
If the answer is not so simple, I would be glad if you can point me to the right direction with a tutorial or to ...
3
votes
2answers
105 views
How do I prevent one of two multiple loops from repeating on a second page?
I have a page with multiple loops, but the first loop repeats on the second (or Older) page. I want to keep the formatting but stop the post from repeating.
You can see the problem here: ...
0
votes
1answer
111 views
Displaying posts limit: can't get pagination to display [duplicate]
Possible Duplicate:
Pagination not working with custom loop
I'm creating a custom page for logged in current users to view their posts. I would like to limit the number of displayed post to ...
0
votes
2answers
126 views
Pagination for two loops
I know this has been discussed before but I can't seem to make it work with any of the solution posted in other topics.
How can I make pagination to work on a loop like this:
<div ...
0
votes
2answers
200 views
Show default content if custom WP_Query has no posts
I have a custom loop to show posts that meet a certain set of $args like this:
<?php $recent = new WP_Query( $orderargs );
while($recent->have_posts()) : ...
1
vote
2answers
57 views
Page-loop is looping content from custom loops on the same site. How to avoid that?
i've made a custom home-page (with a template) and i'm using three loops on this site: two category-loops and on the bottom of the site the main loop for the page (the page content). the problem is: ...
0
votes
3answers
285 views
Split wordpress loop to multiple layouts
OK so I've searched a lot and couldn't find a straight forward answer to my question.
I am simply trying to use one category loop that will display posts in a category page in a wordpress site. lets ...
0
votes
1answer
282 views
Custom Post Type Single Loop Outputting Wrong Post
I have been unable to get my single-portfolio.php template to behave properly.
So I have a custom post type called portfolio. I am displaying all of those posts in the front-page.php and it works ...
2
votes
2answers
136 views
How do I override part of the main loop in my child theme?
I have a child theme based on the twenty ten theme which I am happy with except for one thing. My gallery posts (I am a photographer so the goal of my blog is pictures) do not show any images from ...
0
votes
1answer
64 views
adding custom meta as well as looping through posts
I am grabbing two sets of custom meta and looping through the posts, order goes: custom meta1, posts, custom meta2. but for some reason the second set of custom meta wont show up if I add the posts ...
1
vote
1answer
470 views
Exclude custom taxonomy tag from loop
I have the following code at the beginning of a loop:
<?php query_posts('showposts=3&cat=84'); ?>
<?php $posts = get_posts('category=84&numberposts=3&offset=0'); foreach ($posts ...
2
votes
1answer
317 views
Multiple Queries and Excluding Repeating Posts?
I'm trying to work out how to exclude posts used in the first four custom queries in the last typical query.. haven't been able to find anything that will explain how to do this clearly.
My First ...
2
votes
2answers
563 views
Broken pagination
Well I'm here again with almost the same problem as I had in this post three weeks ago, but let me explain what has happened since then:
I was originally using one loop to display the most recent ...
0
votes
1answer
73 views
Post variables not displaying correctly in custom function
There seems to be something wrong with the simple function below, but I can't figure out what it is. It is displaying as the following and I can't figure out why. I know it has something to do with ...
0
votes
1answer
470 views
Magazine style frontpage with multiple categories/loops and no duplicate posts
I am migrating a static magazine site to wordpress. I would like to have a frontpage displaying multiple categories with a few posts in each, e.g "politics", "environment", "health" and "technology". ...
0
votes
1answer
185 views
Custom Page Template and Category Exclusion
I have a blog (bernsteinbear.com) that uses the TwentyEleven theme. I'm trying to make a custom page template for the front page (a blog page) that gets all the posts except in the "Comic" category. I ...
0
votes
1answer
380 views
Pagination problem with multiple loops on the same page
I'm using 4 custom loops to display 3 posts on each one and every loop has its own pagination which works fine once the page loads up, the problem is that when I click on the 2nd page of the first ...
-1
votes
2answers
157 views
Remove custom post from loop [closed]
I am trying to get rid of a custom post from my blog loop. How do I code the loop to exclude the custom post name media_links?
1
vote
2answers
885 views
List custom taxonomy specific to one custom post type
I am slowly going mad trying to figure this out..
I want to list custom post type 'mobile_review' by custom taxonomy 'mobile_phone', as multipe custom post types share this taxonomy I need some way ...
1
vote
1answer
616 views
Adding Pagination on a Custom Author Page
i have created a custom author's page that list the title of their posts. but the problem is i can't get the pagination to work if it's beyond the set post per page value. i have used get_posts() to ...
0
votes
1answer
305 views
Exclude current post but keep the same posts-per_page amount
Okay I have a custom loop within the main loop of the page that shows 4 posts but obviously excludes the current main post. I'll show you:
<?php $my_query = new WP_Query( ...
0
votes
1answer
800 views
Wordpress loop problem: Multiple loops, index.php and is_paged causing duplicate posts on next page
Hey everyone. I'm not sure if what I'm experiencing is a result of a bug (due to the recent upgrade to 3.1.2) or poor coding. Ever since i upgraded to version 3.1.2 ive been experiencing a problem ...
0
votes
1answer
393 views
Problem with WP_Query loop and search term
I have a custom query to display random posts in my sidebar like this:
$newQuery = array(
'post__in' => get_option('sticky_posts'),
'post_type' => 'ad_listing',
'posts_per_page' ...
0
votes
1answer
314 views
Search results with custom loop don't update when paged
I have the following code in my search results page to split up posts per category.
When I go to the 2nd page of pagination, the results are exactly the same as the first.
I'm assuming $paged has to ...
1
vote
1answer
604 views
Pagination Issues using WP_Paginate Plugin
So I have read more posts and articles about this issue than I care to admit and still nothing I can find works. Here is the issue - I can not get the pagination to advance and it shows all the same ...
3
votes
3answers
1k views
How can I create an alternative home page?
I'm working on a site which has a fully customized front page. Now I'm asked to add a more classic looking blog type page which will be reacheable at http://domain/blog.
I tried creating a custom ...
5
votes
2answers
3k views
Getting Post Comments for post ID using WP_Query() and a Custom Loop?
(Moderator's note: The original title was "Is there a way to get post comments by post ID on a custom loop using WP-Query()?")
Hi! I'm running a custom loop using WP_Query, that only displays one ...