Browsing Category

Wordpress loop

Infinite scroll and template parts bug

I’m getting mad at this : I don’t understand why when I click on “Load more” (I use it with Jetpack), on ‘page 2’ the

WordPress Loop with Custom Post Type for Bootstrap Accordion

So I’m developing a theme and would like to implement an accordion for some client reviews. I followed this handy guide (and updated it for

How are both HTTP and HTTPS versions displaying?

We have a site that somehow has both http and https versions accessible. We want to force it all to https. When we try to

get_template_part() Not Working in Loop

I am having trouble getting get_template_part() to work on my index.php page. The template part is in the loop and is referencing a ‘standard’ post

post->ID displays the same ID number for every post

In the front page, I made a grid structure with a custom loop <?php global $wp_query; $wp_query = new WP_Query(); $wp_query->query('posts_per_page=3&category_name=services'); while ($wp_query->have_posts()) : $wp_query->the_post();

Display featured products through custom loop in WooCommerce 3

I was wondering if someone could help me. I am trying to display featured products using a custom loop. Before WooCommerce 3 I used following

Loop repeating design pattern

Seems like a simple problem but I’m having issues dealing with it. Here’s the layout I need loop one Feature loop two Secondary tert –

Get the amount of posts on a current page

I have loop and I want to get the amount of posts on a current page. So I try: <?php $post_number = $wp_query->post_count; ?> <?php

Wrap every 2 posts

I have 2 columns blog and I want to wrap every 2 posts inside row class, because I have problem with grid if one of

Redirect loop when trying to login to /wp-admin/

Stuck in an infinite loop when trying to log in to my wordpress site. I type in the URL/wp-admin and then it loops me back

WP_Query or Simple Loop: The loops does not work in custom pages or template files

I have been trying to list a number of posts from a particular category in a custom template file. I used native loop, WP_Query and

Is it possible to get a post ID of a 2 different custom post types loop embedded in the same post to perform update_post_meta from the frontend?

I have a ‘Campaign’ custom post type that has details (a paragraph or so) of a particular cause. On the same post exists a ‘Donations’

Woocommerce: How do I remove the product description from appearing on the Shop page on Storefront theme

I’m using the Storefront theme from WooThemes and on the product category pages which show multiple products the description is displaying and it just looks

WordPress Loop if/else

I am trying to create a loop for a custom post type that first calculates how many posts it contains. If it only contains one

Problems with the WordPress loop

I am developing a theme using bootstrap, but I am not able to display my posts as I would like. This is how I wanted

Detect if current page is front page within custom query

I am currently working on a project where we’re designing a custom frontpage template for a static front page. Within the template are three different

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