Linked Questions

0
votes
2answers
301 views

wp_query within function within wp_query

I have a query which looks like this: $args = arguments for the query $query = new WP_Query($args); while ($query->have_posts()): $query->the_post(); $post_id = get_the_ID(); echo ...
0
votes
2answers
106 views

putting wp_query data into html table

I needed to display some data in a simple html table so I started with very basics of table. As shown in the code, the data needed was a list of custom-field-values of a meta_key submitdate, from ...
0
votes
2answers
307 views

Use WP_Query or query_posts() or get_posts() for optimizing a site?

I have read other answers, but I don't understand which is more fast (the best and simple for slow server running)? I have a website with over 1 000 000 hits /day and a slow server with limitations ...
0
votes
2answers
52 views

List all content by post type

I am writing a plugin in which I need to list post/page/attachment by each type. First I get all post type: $post_types = get_post_types (array('public'=>true)); Then I create a loop and query ...
0
votes
2answers
202 views

How do I automate multiple category loops?

I've asked this question already on the WordPress forum, but it sank like a stone, which isn't at all unusual. I've set up a general Articles page with multiple loops, in order to display the first ...
0
votes
2answers
288 views

How to hide a post from archives

I want to hide the WordPress post from archives page using the 'private' option. I only want the post to be hidden from archives but visible to public. How to I do it?
0
votes
2answers
209 views

How can I display only sticky posts from a parent category on the homepage?

On my homepage, I have 3 columns showing varying amounts of information from posts in specific categories (first 2 of them child categories, the third column displays posts from various child ...
0
votes
2answers
261 views

older blog posts not showing in new theme

I have a new, custom theme that I've uploaded on a pre-existing site/blog. Everything seems to be working ok, with the exception of the older blog posts not showing up. Any ideas what I can do to fix? ...
0
votes
2answers
310 views

Get all custom post types excepted some…

I stack since a few hours now and I'm sure that this is not so complicated. I would like to get all custom post types into this $posts = query_posts( ...
0
votes
2answers
290 views

Trying to query all posts in category 4

I have the following template page. I am attempting to output all of the articles from the category 4. However I am only getting some of the posts, about 20% of them. Not sure what would be causing ...
0
votes
2answers
2k views

Blog Page pagination not working, loads Page 1 each time [duplicate]

I don't know what to do here but pagination is driving me crazy! As you can see, "Older" points to blog/page/2 but when clicked, the site stays on blog/. I'm using wp-pagenavi for pagination. The ...
0
votes
2answers
220 views

How to create an identical second loop for attachments?

I have one loop for big images, and I need the same loop with small images (thumbnails). This is where I am stuck. Use case: I am trying to implement the elastic image slideshow jQuery plugin with ...
0
votes
2answers
391 views

How to order different custom post type in category or tag template page?

I have 3 differents custom post type : "Projet", "Notice" and "Disque". I want them to appear in a specific order when they are listed in the category or the tag template page. Like that : 1 - ...
0
votes
2answers
306 views

Disable (or limit) queries when certain content (or data) is not needed (or showed)

Currently I am making a custom design for a site. The problem I'm seeing in Wordpress is about almost all data pulled out from the database. While in certain pages - like front-page.php - it only ...
0
votes
2answers
269 views

getting the post_id from the post_meta

I need to find out the post_id of a post_meta record where the custom key is 'XYZ' and the is 'ABC'? Is there an API for that? Or do I need to run a regular select SQL with wpdb class?

15 30 50 per page