view a list of 3 future post, from the nearest to the most far

You should be able to get the next 3 posts by requesting the future status. $args = array( ‘post_type’ => ‘post’, ‘post_status’ => ‘future’, ‘posts_per_page’ => 3, ‘orderby’ => ‘date’, ‘order’ => ‘ASC’, ); $future_posts = new WP_Query( $args ); References WP_Query parse_query() (details on the available arguments) Post Status » Future

How to pass posts_per_page and paged params query vars to custom taxonomy archive urls?

If I try to add &posts_per_page=15 to url, it doesn’t work: it won’t change number of post. I wonder if you’re looking for a custom query variable, e.g. ppp, to change the number of posts for the main query: add_filter( ‘query_vars’, function( $vars ) { $vars[] = “ppp”; return $vars; } ); add_action( ‘pre_get_posts’, function( … Read more

Customizing the output of the archive and category widget without altering the original behavior of the widget

No, there are no filters for doing this. You would need to create your own version of the widgets in order to achieve this. You can find the default WordPress widgets in the following folder: /wp-includes/widgets in your WordPress installation. Simply copy the code from within the respective widget .php files in to your theme … Read more

What’s wrong with default posts archive?

The ‘All Posts’ archive is a Blog. You choose a Blog page in Settings > Reading > Front page displays. It can either be the front page or another page. The template that page uses depends on what templates your theme has and the Template Hierarchy. home.php or index.php will likely be the template you … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)