Linked Questions

0
votes
1answer
27 views

Why is my pagination showing up?

I have the following code, Assume this code spits back one post. the page displaying that post will also display pagination. Why? It shouldn't. This code only queries for posts that belong to the post ...
0
votes
1answer
66 views

Post content stays the same but permalink changes ?

This is really weird. I made a posttype ' mediagallery ' via the plugin Types fields. I simply want to load the post content and switch the posts with a next & prev button in de sidebar. The post ...
0
votes
1answer
25 views

wordpress taxonomy results

I am using taxonomy.php to fetch some rows from database. On taxonomy page the function get_queried_object() shows that I have got the right results from database but wordpress loop if ( have_posts() ...
0
votes
1answer
3k views

How to create a category and sub-category sorted blogroll with all posts?

I would like some help to post all the posts of my website into a blogroll sorted by categories and subcategories. The end-result HTML I would like to see displayed would be something like this: ...
0
votes
1answer
237 views

Order posts of a custom post type by the event date using FT Calendar Plugin

I am using the FT Calendar Plugin. My question is how can I order posts of a custom post type by the event calendar date? So for instance I have a CPT named "Events" and for each event post a ...
0
votes
1answer
174 views

Restrict query_posts by Date?

To display the most popular posts based on page views I am using this code (source): <?php query_posts('meta_key=post_views_count&orderby=meta_value_num&order=DESC'); if ...
0
votes
1answer
85 views

Display posts from a category

I am trying to display a bunch of posts from a single category on the category page, using multiple loops. <div id="featured-content" class="clearfix"> <? // assign the variable as current ...
0
votes
1answer
91 views

Exclude current sticky post

I have the following query, trying to fetch the latest sticky posts but exclude the current one: $sticky = get_option('sticky_posts'); rsort( $sticky ); $sticky = array_slice($sticky, 0, 3); ...
0
votes
1answer
111 views

Why does this query not SELECT post IDs like a normal query would?

I have a page template, call it page-myblog.php, that I want to display an ordinary loop on. I have created a page 'myblog' in the admin area and it crops up as normal on the front end. I want to ...
0
votes
1answer
492 views

pagination does not work with query_posts. Help! [duplicate]

I made ​​a separate page template (added sidebar), this page contains all the posts. Pagination works! But, if this page set as the home page, pagination is not working! Please help find solutions ...
0
votes
1answer
406 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( __( ...
0
votes
1answer
1k views

How do I make archives.php for one category only?

I have a basic archives.php file. I was trying to get it to display only posts from category 1. When I do query_posts('cat=1'), the URL is then ignored and all posts in category 1 are displayed. For ...
0
votes
1answer
722 views

A two column loop with one lead post

I got a loop from internet (I forgot the site) for two column post view. It has a nice CSS for it too. But skipping that for the question now. <?php $counter = 1; ?> <?php ...
0
votes
1answer
523 views

get_posts() and global variables

I was reading this post: When should you use WP_Query vs query_posts() vs get_posts()?, which seems to have become the go-to post for understanding the difference between the different functions for ...
0
votes
1answer
119 views

Wordpress pagination URL posts not load

I set up wordpress newly and add next previous pagination in home page using following code next_posts_link('Older Entries »', 0); previous_posts_link('« Newer Entries', 0); Pagination URL work ...

15 30 50 per page