Posts unintentionally excluded in a WP_query
-
Godday Mario!
The plugin works excellent for my needs!
Until I wanted to list all posts where the current user ID is the value of a specific custom field (fetcher) for posts and found that the posts with a category marked with “Exclude from Front Page?” in your plugin settings are excluded in the resulting list (on the users profile page).
Does that make sense to you when looking at my query below?
Can you maybe tell me if the query has to be adjusted..? ??<?php $current_user = wp_get_current_user(); $user_ID = $current_user->ID; // The Query to show a specific Custom Field $the_query = new WP_Query( array( 'meta_key' => 'fetcher', 'meta_value' => $user_ID ) ); ?> <?php // The Loop [...]
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Posts unintentionally excluded in a WP_query’ is closed to new replies.