Browsing Category

Wordpress loop

Duplicate posts in paginated results

I’m running into an issue where there are duplicate posts appearing in my paginated results. I suspect the issue is to do with my use

Why does it loop twice ?

I have this loop and I don’t know why, I have a “load more” button and when I click on it, it loads all articles

Bulk update wordpress posts

Coders. I’m really new in WP Coding, I have zero knowledge, here we are. I created a plugin (actually found it, but I did some

Out Of memory issue on post per page parameter

I am using woocommerce and i have around 1500 product in one category, i have a brand as a custom taxonomy, and on category page

How to loop through ALL pages?

Is it possible to loop through all the pages in a website? I’m building a one-pager resume website, and I want to display all of

How to add <ul> in WP_Query to every 3 posts displayed?

I want to display every 3 products in a Example of how HTML should look: <ul> <li>product looping 1</li> <li>product looping 2</li> <li>product looping 3</li>

$wp_query: How to display excerpt on first post only

Why does my $featured_query treat every post as the first? Following Pieter’s advice here, and similar posts, using the built-in loop counter I’ve been unable

How to Pass Current Taxonomy Terms into new WP_Query?

On my single portfolio pages, I want to add a “See more from this category” section under the post. Here is my code that checks

How to set variable, pass it to a partial file and remove it after?

I am looking on how to include variable only when needed into a partial which is loaded for every loop. I have tried set_query_var which

Images to be placed after two posts?

I am trying to put an different images in the post list articles page, where I will be having 10 posts to show on home

Retrieve value from a field outside a repeater loop

I am setting up a carousel using the Advanced Custom Fields (ACF) plugin. This carousel is being set up inside a flexible content. I’ve created

WP_Query on custom field and order results

I have this: $custom_query_args = array( 'post_type' => 'mcg_event', 'posts_per_page' => -1, 'meta_query' => array( 'relation' => 'AND', array( 'key' => 'event_status', 'value' => 'archived',

How to execute a user loop with shortcode

i am trying to create a membership directory that will display all the user which would also trigger a shortcode based on the user ID.

Why my query not giving results?

I have query to show upcoming competitions $today = strtotime(date( 'Y-m-d' )); $args = array( 'post_type'=>array('posts', 'competition'), ); query_posts($args); It worked, but I wanted show

Why is my query not giving results?

I have this query to show upcoming competitions: $today = strtotime(date( 'Y-m-d' )); $args = array( 'post_type'=>array('posts', 'competition'), ); query_posts($args); It worked, but I wanted

how to query select page data from OnePageSite query

<?php if ( ( $locations = get_nav_menu_locations() ) && $locations[ 'primary' ] ) { $menu = wp_get_nav_menu_object( $locations[ 'primary' ] ); $menu_items = wp_get_nav_menu_items( $menu->term_id

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