Browsing Category

Wordpress loop

Twenty Seventeen Pages Loop

Can someone explain to me where in the Twenty Seventeen theme in the static homepage is it directed to do a loop of pages rather

Using an ACF field from a page within a post loop?

I have a page set up with custom fields using Advanced Custom Fields. One of the fields is a text field for specifying the text

How many posts does the loop return?

I am creating a child theme archive template. I don’t know how many posts will be displayed, which is fine except that i want to

Second get_permalink inside loop points to wrong URL

For some reason the second get_permalink located on the featured image is pointing to the current page, instead of the post URL. The first get_permalink

Posts loop with pagination on a single post page

today, i need your help. On my pages i have a sidebar with : <div class="sidebarActu"> <ul> <?php $i = 1; while ( have_posts() )

WordPress get all products

For a custom plugin I want a full list of all products we have in WooCommerce. So, I found this code, but it shows only

How to order posts by their category names?

This is for online scientific journal. I have posts attached to categories. Those posts are also attached to custom taxonomy called journals. First I need

Adding custom PHP to existing loop in Genesis

I am using the theme Magazine Pro for the Genesis Framework. I have a plugin that in order for it to be displayed I must

How to simplified this loop code?

I have code that work’s perfectly for the desktop view & mobile view. But the code is not best practice because its have duplication. Here

WordPress Grid Combination of 4 and 2 columns twitter-bootstrap?

I want to display post based on combination of 4 columns (desktop view), 2 columns (mobile view 768px) and 1 columns (mobile view 425px). I

How to create WordPress loop with combination of 4 and 2 columns twitter-bootstrap?

I want to display post based on combination of 4 columns (desktop view), 2 columns (mobile view 768px) and 1 columns (mobile view 425px). I

How to create bootstrap grid loop?

May I know how to create multiple loop for this HTML code in WordPress? <div class="row"> <div class="col-md-3 col-sm-6"> <div class="normal-video"> <a href="#"> <div id="video-content-img"

Pausing and Resuming WP_Query results

I’ve a custom WP_Query something like this: $query_args = array( 'post_type' => 'post', 'cat' => 12, 'posts_per_page' => 5 ); $custom_query = new WP_Query($query_args); Now,

Alternate custom content in the loop

I have a slick slider scrolling through some posts. I also have a couple of divs displaying between every third slide some some different content

How to display just video post format?

I actually stuck to display a ‘video’ post format in the video section on main page. Here is my current code: <?php // The Query

Show other category posts in single.php

On my single.php i want to show the current post and underneath it i want to list all the posts in cat-2. In my loop

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