Browsing Category

Wordpress loop

wordpress wrap every 3 posts in a div after the very first post in a loop [duplicate]

This question already has an answer here: A two column loop with one lead post 1 answer I want to add every 3 posts in

QueryObject un-orders post

Hi I’m using this code below to display post from a specific category and also to style the first post different from the next 5

Is wp_reset_postdata() redundant after the main loop?

I’m confused about an example from the docs: <?php // The main query. if ( have_posts() ) : while ( have_posts() ) : the_post(); the_title();

PHP WP ACF for loop only iterating once

Hi there I am attempting to output stuff based on an ACF drop down selection. I am using a for loop to output but it

Loop and Page template : my WP_query don’t take args

I have a problem with a loop that I try to put into a custom Page template. I would like to display posts with conditions,

query_posts() doesn’t seem call in my page

I’ve a problem with my query_posts() call. Here is my code: $results = $wpdb->get_results("SELECT post_id FROM " . $wpdb->postmeta . " WHERE meta_key = 'mashsb_shares'

query_posts() doesn’t seem to be called in my page

I’ve a problem with my query_posts() call. Here is my code: $results = $wpdb->get_results("SELECT post_id FROM " . $wpdb->postmeta . " WHERE meta_key = 'mashsb_shares'

Div Missing In Custom Loop Query

I’m using a customized php code for my wordpress loop. The code is designed the break the post up to be styled differently via html

Assign custom parameter to each post in query

I’m trying to add an incremental variable to each post that comes up in a series of queries. The purpose is to calculate a weight

Own Class in While Post Loop

So i’ve created my own class which i load trough my functions.php For my custom post type, i’ve created an own archive-{posttype}.php. In my while

Pagination reloads first page but has proper url

So I built a blog for someone but I’m having an issue with the homepage. The homepage is set to show 9 posts before the

Converting fake php page loop to wordpress loop?

I was handed off a project that was created using backbone.js to be “WordPressified” and I’m having trouble converting the fake page loop in to

Merging a complex query with post_rewind and splitting posts into two columns

I need help with my query that uses rewind_posts so that if a post is in a particular category, it moves to the top. What

Pagination pages load first page for all page numbers

So I built a blog for someone but I’m having an issue with the homepage. The homepage is set to show 9 posts before the

Shuffling Posts On First Load?

I have a category with 20 posts and I would like to shuffle the posts on the page for each individual user that visits the

Conditional in foreach loop is outputting content twice

I have a website that displays a slideshow using custom fields and the Slick carousel, using the code below. <?php $entries = get_post_meta( get_the_ID(), '_mysite_homepage_slider_group',

Back to Top 107209 wordpress questions, 32 Wordpress answers.
Wordpress related, All rights reserved
Powered by Creative Advertising