Skip to main content

All Questions

Tagged with or
Filter by
Sorted by
Tagged with
0 votes
1 answer
371 views

Post thats in Two Categories, only want to display name for one

In my Wordpress site I've created, I'm having issues hiding or not displaying one of the category titles I set up. I'll try to explain better. Wordpress Admin Side I have a post that is in two ...
Matt's user avatar
  • 13
0 votes
2 answers
3k views

Limit get_categories to show each category once

I am trying to create a home page where it is a list of categories with an associated thumbnail for each. I would like it so it returns each category once and returns the associated thumbnail from ...
zac's user avatar
  • 650
1 vote
1 answer
971 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 ...
user avatar
1 vote
2 answers
2k views

How to retrieve "sticky" post outside the "loop"?

I need to display the "sticky" post in a section that is outside the "loop". Can someone tell me how to do this?
user1462's user avatar
  • 1,304
6 votes
2 answers
5k views

How to add a "last" class to the last post in loop.php?

I need to add a "last" class to the last post that appears in loop.php. Can someone tell me how to accomplish this?
user1462's user avatar
  • 1,304
0 votes
2 answers
474 views

Displaying page image in the footer automatically

I've got the following problem: each page of the site has its own image which needs to be placed within the footer div for correct, static placement. However each image is different so I can't just ...
user avatar
0 votes
1 answer
789 views

Display different number of posts from one category on the different pages

according with Pagination with custom loop. I use the custom loop for display flash game. For make a pagination on the page with posts from one category (mydomain/category/categoryName) I used: ...
glazsasha's user avatar
  • 111
4 votes
4 answers
29k views

How to Change Loop to Order Posts by Views (using wp-postviews plugin)

I hope somebody would be kind enough to help. I currently have a page that orders all of the posts by comment count, but I want to change the loop to order the posts by view count. I have installed ...
PG73's user avatar
  • 111
1 vote
2 answers
4k views

Breaking the loop?

WP loops are widely used to print lists of posts in Wordpress: <?php $loop = new WP_Query( array( 'post_type' => 'ff', 'ff' => 'show_ff', 'orderby' => 'menu_order', 'order' => 'ASC' ));...
Wordpressor's user avatar
  • 5,051
1 vote
2 answers
349 views

How do I display the function the_content in this loop?

I have this loop in my wordpress site which displays the latest posts with their titles, I want to display the post content after the title. I normally retrieve it with the function get_the_content ...
user avatar
1 vote
1 answer
862 views

Can I create a loop with multiple post types and specify different $args for each post type?

I'd like to create a custom loop that includes all Post types: Post and Video. Then I'd like to specify to show all posts of the post type Video, but only show posts that are in the category "Videos."...
matt's user avatar
  • 1,662
1 vote
2 answers
330 views

How to track post number on the_loop

I have a need to customize some posts from the loop. Here's the deal: My site is set to 10 posts per page. On post #2,#5, #7 (on every page), I want to display specific background. What's the best ...
ariefbayu's user avatar
  • 1,461
2 votes
2 answers
5k views

Ajax loop refresh on click

I display a random post loop on a page. I'd like to put a "refresh" link to refresh the content of the loop via ajax. Is this possible? This is my loop if it helps: <ul id="content-...
Carpy's user avatar
  • 310
1 vote
1 answer
406 views

How can I show the post thumbnail from the most recent of a certain post type, in widget?

I'm using the excellent PHP Code Widget plugin, and want to create a widget that displays the post thumbnail (aka featured image) for the most recent 'project' post. Here's the code I have so far, but ...
Travis Northcutt's user avatar
43 votes
5 answers
34k views

Pagination not working with custom loop

I've got a custom loop that I'm using to display some Real Estate listings that will be available within 60 days. I'm calling it with the following function: <?php $sixtydays = date('Y/m/d', ...
nurain's user avatar
  • 557
3 votes
4 answers
4k 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 (...
Matteo Riva's user avatar
0 votes
2 answers
6k views

How can I change how my tag pages display?

Ok, I'm using the TagCloudShortCode plugin. I have a problem with how my tag pages display.... I want them to display the way they show on my main page, with the image and more button... how do I ...
krazykat1980's user avatar
1 vote
1 answer
3k views

Formating the display of a post's date, outside the Loop

I'm using this function to be able to retrieve several data, from outside the Loop: function get_post_data($postId) { global $wpdb; return $wpdb->get_results("SELECT * FROM $wpdb->posts WHERE ...
Sergio Majluf's user avatar
0 votes
3 answers
1k views

How to splice in wp_links links into the loop?

I want to create a loop where 2 or 3 items from my blogroll are spliced in like this: <loop> <post1> <post2> <blogroll1> <post3> <blogroll3> ...
Dan Gayle's user avatar
  • 6,136
0 votes
1 answer
805 views

Problem with WP_Query sort

I have the following custom query written for a page- $menu_loop = new WP_Query( array( 'post_type' => 'page', 'posts_per_page' => 50, 'post_parent' => 616, 'order_by' => 'post_title', 'order' => '...
Marty's user avatar
  • 113
1 vote
3 answers
4k views

How to get the list of posts in a static page other than front page?

So, for the thousands using WP as CMS, a typical approach is that of using the 'A Static Page' option from the Settings > Reading admin page. However, I'm in a different scenario: our front page is ...
FOR's user avatar
  • 209
7 votes
4 answers
11k 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 ...
Rodrigo's user avatar
  • 73
0 votes
1 answer
267 views

Is there a way to define the $post var outside the loop?

I am trying to speed up a wordpress site by condensing three wp_queries into one. I have a need to seperate categories, so I am making the call and defining 3 arrays to hold the post using a switch, ...
Mild Fuzz's user avatar
  • 4,190
0 votes
1 answer
500 views

Create a Loop with Posts Ordered by Most Recent Comments

Using query_posts, how can I order the list of posts so the ones with the most recent comments are at the top? I'm looking for something similar to how Questions here on SE are ordered when you ...
matt's user avatar
  • 1,662
4 votes
2 answers
9k views

Strategy to get post meta for use outside the loop

I need to know solutions for the question above. There are cases, when we need post meta information outside the loop. Let's say, I'm developing theme that will display ads from certain vendor on that ...
ariefbayu's user avatar
  • 1,461

1
63 64 65 66
67