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

learn more… | top users | synonyms (3)

0
votes
1answer
14 views

Show terms in archive page

I am trying to show terms of specific post type on archive page. I don't understand how to "echo" term name. Here is my code: <?php $terms = get_terms("event_cat"); ?> <?php while ...
0
votes
0answers
17 views

How to order query by numeric meta value?

I cannot order my query by meta value by numbers, and ordering by post order does not work too. This is my code: <?php $args = array( 'posts_per_page' => '-1', 'post_type' => ...
0
votes
0answers
11 views

Building theme so user can change header image

My Google-Fu is letting me down so I'm trying it here. I'm building a theme and I want the customer to be able to change the header image him/herself in the wp-admin. How do I go about this? As I ...
0
votes
0answers
17 views

Order / Sort Posts By Meta Value

I have a meta value called _start_date which is pretty much using the built-in datepicker to get a date though, it is putting it in the format D M dd (Fri Oct 04). I want to sort my posts on that meta ...
0
votes
1answer
12 views

Tags interfering with next_post_link();

I am creating a theme in WordPress. I am using query_posts('tag=front') to limit the posts on the front page. However, I want to let the user navigate through all posts, regardless of tags when on ...
-1
votes
1answer
30 views

How to handle parent and child pages?

I want to list episodes of a series I am making of instructional videos with content. The patent page "series" will list episodes weekly. Ie: episodes 1, 2, etc. I'm thinking to setup a template to ...
0
votes
1answer
36 views

Transient Loop Not working as expected

So I created a transient object that used get_posts() to get a series of posts based on some argument. Well the transient was stored - it was created - YAY - now I tried to write this loop: public ...
0
votes
0answers
22 views

SQL Statement to sort custom query over multiple meta fields with duplicates?

i'm normally doing more Design/CSS stuff, so please be patient if this question is a nobrainer... My question is as follows: I have a custom post type, that has multiple custom fields. Now i need a ...
-1
votes
0answers
16 views

Wordpress redirects from www.domain.tld to domain.tld and back again, looping

Like said in the object i'm having a redirect loop. This happens just on some browsers. I contracted this issue after moving from a demo server. I'm on Aruba, talkin' about schoolbadge.it Thanks.
-1
votes
1answer
23 views

How do I create a template page to show 3 blog posts?

I have a blog theme that I created which shows one post per page. To do this I simply set up single.php the way I wanted, and I have some code that links the 'blog' item in the nav to the latest blog ...
0
votes
1answer
14 views

Storing query variable and then using wp_reset_query

I want to use a pagination function with a custom posts query (to get posts from a specific category). My pagination function gets the query from global $wp_query; So in the following code I have ...
0
votes
1answer
17 views

how to get number of posts in a category on a specific date

I want to get the number of posts for each category on a specific date. I think I can do the following: - get a list of categories - start loop ---create a query for each category and specific date ...
1
vote
1answer
35 views

Modify the main loop to display current month / year

So pre_get_posts seems to be the way to do this now - a lot of the background is nicely explained here: When to use WP_query(), query_posts() and pre_get_posts I can happily modify the main loop to ...
0
votes
1answer
14 views

how to define category loop last class in the third

on my page category.php file i'm using product listing, product block loop is , product-block , product-block , product-block last last class no margin-left, how to define third product "last ...
0
votes
2answers
32 views

Two posts in same div - WP loop

I would need the following in Wordpress: <div class="posts-wrapped"> <div id="post-1" class="post"> <h1>Title 1</h1> </div> <div id="post-2" ...

15 30 50 per page