New answers tagged loop
0
votes
How do I display WooCommerce products in my query to rows of 3?
Your query does not determine how many show per row; you'd use CSS to accomplish that.
0
votes
Count post views in loop
function setAndViewPostViews($postID) {
$count_key = 'views';
$count = get_post_meta($postID, $count_key, true);
// Check if the post has already been viewed by the current visitor
$...
0
votes
How to get posts by a certain author in inner loop using outer loop variable or post title WordPress
Mapping the page to a WordPress user is the best approach. An ACF User field to select the user would give you the author ID, which can then be used easily in a WP_Query instance.
0
votes
category__not_in and id values from variable
just use this $arg.
$args = array(
'category_name' => 'olympic-physique',
'tax_query' => array(
array(
'taxonomy' => 'category',
'field' => 'slug',
'...
Top 50 recent answers are included
Related Tags
loop × 3302wp-query × 724
custom-post-types × 521
php × 405
posts × 385
categories × 271
pagination × 213
custom-taxonomy × 192
query-posts × 190
theme-development × 160
query × 151
custom-field × 143
functions × 122
customization × 119
pages × 100
templates × 96
advanced-custom-fields × 85
get-posts × 76
plugins × 70
woocommerce-offtopic × 63
ajax × 63
taxonomy × 63
filters × 61
page-template × 61
shortcode × 59