Pagination – Posting First Page Content

Try to update index.php template with new WP_Query arg paged. The code should be: <?php $paged = isset(get_query_var(‘paged’)) ? get_query_var(‘paged’) : 1; $news_query = new WP_Query(array( ‘post__not_in’ => array($featured_post->ID), ‘paged’ => $paged )); More info in codex

Remove some articles from the list in WPAdmin for a user

This could done with couple of ways: With pre_get_posts Small modification will need it like the actual meta value names function alter_edit_php_query_remove_posts($query) { $screen = get_current_screen(); if(is_admin() && $screen->post_type == ‘post’) { $current_user = wp_get_current_user(); $key = ‘nickname’; $single = true; $user_meta_value = get_user_meta( $current_user->ID, $key, $single); $meta_query = array( array( ‘key’=>’_edit_last’, ‘value’=>$user_meta_value, ‘compare’=>’=’, ), … Read more

ping_status in JSON REST API

According to WordPress Codex, pings tells Whether the current post is open for pings. In human words, A ping is a “this site has new content” notification that invites search engine bots to visit your blog. For more info, have a look at this blog article.

Hide add new page button

This can be achieved easy enough with just CSS. First we are going to add a function that will output a class to the body tag based on what role the user is. Then we will enqueue a stylesheet to show up in the admin. Then use the class in the body to target and … Read more

Disabling post_type in URL

I think you might be able to accomplish this via filter. Looking at the core wp class you’ll find the $public_query_vars and $private_query_varsvariables defined by a hardcoded array. These could probably be overriden/changed via the global $wp object but if you dig a bit deeper there’s a filter that should let you remove items from … Read more

How to get the latest posting time of archived pages in WordPress?

Query the posts ordered by date, restricted to 1 post to display, then get the date. $args = array( ‘posts_per_page’ => 1, ‘orderby’ => ‘date’, ‘order’ => ‘DESC’ ); $lastpost = get_posts($args); echo $lastpost[0] -> post_date; Edited last line for proper display: $lastpostdate = $lastpost[0] -> post_date; echo ‘<div class=”lastpostdate>”‘ . $lastpostdate . ‘</div>’; Or, … Read more