Linked Questions

4
votes
1answer
645 views

WP_Query ignores post_type in category view

I have following query to select posts by my custom post-type. This works fine while being on the frontpage (the snippet is included in the sidebar). As soon it gets executed on a category page the ...
-2
votes
2answers
643 views

Show post titles only on the homepage

Is there any way to show a list of all posts without any preview of the content on the homepage?
0
votes
1answer
494 views

How to get the post excerpt using post object?

I'm trying to show post excerpt as in navigation. I'm trying this in plugin, does it make any sense? i don't know. I used $nex_obj = get_adjacent_post(false, '', true); for next post and it returns ...
5
votes
1answer
492 views

WordPress Posts By Date/Day?

I want to output on the homepage the posts from the lastest 3 days. Like this: 30/03/12 post 1 post 2 post 3 29/03/12 post 1 post 2 post 3 28/03/12 ...
0
votes
1answer
569 views

How do I query_posts in cat=1 AND not in cat=2

Let's say I have 3 categories, College (cat=1), Corporate (cat=2), and Idea of the Week (cat=3) There is a home page for College and a home page for Corporate. On the College home page, in one ...
1
vote
1answer
567 views

how do i remove posts from a WP_Query so the pagination is right?

I'm using a custom post type and showing 20 of them per page on the homepage. I'm using QP_Query. One custom field for the custom post type (called mixtapes) is a checkbox called "unreleased" (set ...
1
vote
1answer
440 views

Get random posts between specific dates / of specific age

I need to get post IDs from a custom post type randomly and the posts are posted within 30 days. But I can't really find a solution. How can I do it? This is my query. ...
0
votes
1answer
337 views

2 loops, is_home won't work, count is off

Alright, I've made a bunch of themes over the years, and I've written a lot of queries. And I just realized that I apparently have no clue how to get multiple queries to behave. So, here is the loops ...
0
votes
1answer
429 views

Archive page showing wrong month

My site's archive page is echoing wrong Month name. Though the URL is 2012/11/, it's echoing the month December 2012. I found nothing wrong with the code: <?php if ( is_day() ) : printf( __( ...
1
vote
3answers
256 views

Force index.php have_posts() loop to exit if no sticky posts found

I'm currently using the code below to list sticky posts on my index.php. However, when no sticky posts are present, its loading the latest posts (up to the number specified in "settings > reading > ...
4
votes
2answers
531 views

Wordpress the_content() return only one image from a specific category

I am working on a Wordpress website and I am using a loop to get all the posts that have title and body contain an image. But the problem is that it returns me all the titles but not all the images. ...
1
vote
2answers
523 views

sticky post in custom loop

I have a problem with showing sticky posts in a custom loop. This is the code I'm using to for the custom loop: <?php $post_from_cat_a = new WP_Query(array( 'category_name' => ...
1
vote
1answer
521 views

Tabbed content with Pagination

I've stumble across an issue on a site Im building. I have tabbed content each holding a category for price ranges in seprate loops. The tabs work great filtering the categories, however some of the ...
0
votes
1answer
467 views

How to show 3 most recent/viewed posts in a special tiles on home page using wordpress?

I have these tile elements on the top of my homepage: <div class="tile1"> <div class="tile-textbox" style="color: #22284f;">Just Some Title</div> </div> ...
1
vote
1answer
461 views

Possible to display posts containing a short code ?

i have some posts with a certain shortcode in them. unfortunately these posts are in different categories and contain different tags so i am not able to query them. is it possible that i run a query ...

15 30 50 per page